Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
indicators
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangkb
indicators
Commits
60785873
Commit
60785873
authored
Jun 14, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改新增或者修改的接口代码
parent
04b2163f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
5 deletions
+18
-5
DriveIndCalResultService.java
...ndicators/service/hytobacco/DriveIndCalResultService.java
+6
-1
IndScorecardService.java
...ile/indicators/service/hytobacco/IndScorecardService.java
+4
-0
IndicatorsValueService.java
.../indicators/service/hytobacco/IndicatorsValueService.java
+0
-4
ScoreRuleService.java
...mobile/indicators/service/hytobacco/ScoreRuleService.java
+4
-0
ShortboardRuleService.java
...e/indicators/service/hytobacco/ShortboardRuleService.java
+4
-0
No files found.
src/main/java/com/keymobile/indicators/service/hytobacco/DriveIndCalResultService.java
View file @
60785873
...
@@ -26,7 +26,12 @@ public class DriveIndCalResultService {
...
@@ -26,7 +26,12 @@ public class DriveIndCalResultService {
private
DriveIndCalResultDefMapper
driveIndCalResultDefMapper
;
private
DriveIndCalResultDefMapper
driveIndCalResultDefMapper
;
public
int
saveOrUpdate
(
DriveIndCalResultDef
driveIndCalResult
)
{
public
int
saveOrUpdate
(
DriveIndCalResultDef
driveIndCalResult
)
{
return
driveIndCalResultDefMapper
.
insert
(
driveIndCalResult
);
if
(
driveIndCalResult
.
getId
()==
null
)
{
driveIndCalResultDefMapper
.
insert
(
driveIndCalResult
);
}
else
{
driveIndCalResultDefMapper
.
updateByPrimaryKey
(
driveIndCalResult
);
}
return
driveIndCalResult
.
getId
();
}
}
public
DriveIndCalResultDef
findById
(
Integer
id
)
{
public
DriveIndCalResultDef
findById
(
Integer
id
)
{
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/IndScorecardService.java
View file @
60785873
...
@@ -62,7 +62,11 @@ public class IndScorecardService {
...
@@ -62,7 +62,11 @@ public class IndScorecardService {
indScorecard
.
setCatalogId
(
catalogId
);
indScorecard
.
setCatalogId
(
catalogId
);
indScorecard
.
setCatalogIdPath
(
catalogIdPath
);
indScorecard
.
setCatalogIdPath
(
catalogIdPath
);
indScorecard
.
setLastUpdater
(
user
);
indScorecard
.
setLastUpdater
(
user
);
if
(
indScorecard
.
getId
()==
null
)
{
indScorecardMapper
.
insert
(
indScorecard
);
indScorecardMapper
.
insert
(
indScorecard
);
}
else
{
indScorecardMapper
.
updateByPrimaryKey
(
indScorecard
);
}
return
indScorecard
.
getId
();
return
indScorecard
.
getId
();
}
}
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/IndicatorsValueService.java
View file @
60785873
...
@@ -20,7 +20,6 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook;
...
@@ -20,7 +20,6 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.keymobile.indicators.model.entity.DimValue
;
import
com.keymobile.indicators.model.entity.DimValue
;
...
@@ -43,9 +42,6 @@ public class IndicatorsValueService {
...
@@ -43,9 +42,6 @@ public class IndicatorsValueService {
@Autowired
@Autowired
private
DriveIndCalResultDefMapper
driveIndCalResultDefMapper
;
private
DriveIndCalResultDefMapper
driveIndCalResultDefMapper
;
@Value
(
"${mongodb.database}"
)
private
String
database
;
public
void
fillExcelXianScore
(
List
<
String
>
indIds
,
int
date
,
public
void
fillExcelXianScore
(
List
<
String
>
indIds
,
int
date
,
String
compareObjString
,
int
groupNum
,
int
type
)
throws
Exception
{
String
compareObjString
,
int
groupNum
,
int
type
)
throws
Exception
{
String
filePath
=
"D://indicatorsFile/file10.xlsx"
;
String
filePath
=
"D://indicatorsFile/file10.xlsx"
;
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/ScoreRuleService.java
View file @
60785873
...
@@ -47,7 +47,11 @@ public class ScoreRuleService {
...
@@ -47,7 +47,11 @@ public class ScoreRuleService {
scoreRule
.
setCatalogId
(
catalogId
);
scoreRule
.
setCatalogId
(
catalogId
);
scoreRule
.
setCatalogIdPath
(
catalogIdPath
);
scoreRule
.
setCatalogIdPath
(
catalogIdPath
);
scoreRule
.
setLastUpdater
(
user
);
scoreRule
.
setLastUpdater
(
user
);
if
(
scoreRule
.
getId
()==
null
)
{
scoreRuleMapper
.
insert
(
scoreRule
);
scoreRuleMapper
.
insert
(
scoreRule
);
}
else
{
scoreRuleMapper
.
updateByPrimaryKey
(
scoreRule
);
}
return
scoreRule
.
getId
();
return
scoreRule
.
getId
();
}
}
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/ShortboardRuleService.java
View file @
60785873
...
@@ -43,7 +43,11 @@ public class ShortboardRuleService {
...
@@ -43,7 +43,11 @@ public class ShortboardRuleService {
shortboardRule
.
setCatalogId
(
catalogId
);
shortboardRule
.
setCatalogId
(
catalogId
);
shortboardRule
.
setCatalogIdPath
(
catalogIdPath
);
shortboardRule
.
setCatalogIdPath
(
catalogIdPath
);
shortboardRule
.
setLastUpdater
(
user
);
shortboardRule
.
setLastUpdater
(
user
);
if
(
shortboardRule
.
getId
()==
null
)
{
shortboardRuleMapper
.
insert
(
shortboardRule
);
shortboardRuleMapper
.
insert
(
shortboardRule
);
}
else
{
shortboardRuleMapper
.
updateByPrimaryKey
(
shortboardRule
);
}
return
shortboardRule
.
getId
();
return
shortboardRule
.
getId
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment