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
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
8 deletions
+21
-8
DriveIndCalResultService.java
...ndicators/service/hytobacco/DriveIndCalResultService.java
+6
-1
IndScorecardService.java
...ile/indicators/service/hytobacco/IndScorecardService.java
+5
-1
IndicatorsValueService.java
.../indicators/service/hytobacco/IndicatorsValueService.java
+0
-4
ScoreRuleService.java
...mobile/indicators/service/hytobacco/ScoreRuleService.java
+5
-1
ShortboardRuleService.java
...e/indicators/service/hytobacco/ShortboardRuleService.java
+5
-1
No files found.
src/main/java/com/keymobile/indicators/service/hytobacco/DriveIndCalResultService.java
View file @
60785873
...
...
@@ -26,7 +26,12 @@ public class DriveIndCalResultService {
private
DriveIndCalResultDefMapper
driveIndCalResultDefMapper
;
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
)
{
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/IndScorecardService.java
View file @
60785873
...
...
@@ -62,7 +62,11 @@ public class IndScorecardService {
indScorecard
.
setCatalogId
(
catalogId
);
indScorecard
.
setCatalogIdPath
(
catalogIdPath
);
indScorecard
.
setLastUpdater
(
user
);
indScorecardMapper
.
insert
(
indScorecard
);
if
(
indScorecard
.
getId
()==
null
)
{
indScorecardMapper
.
insert
(
indScorecard
);
}
else
{
indScorecardMapper
.
updateByPrimaryKey
(
indScorecard
);
}
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;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
com.keymobile.indicators.model.entity.DimValue
;
...
...
@@ -42,9 +41,6 @@ public class IndicatorsValueService {
private
IndicatorsDataMapper
indicatorsDataMapper
;
@Autowired
private
DriveIndCalResultDefMapper
driveIndCalResultDefMapper
;
@Value
(
"${mongodb.database}"
)
private
String
database
;
public
void
fillExcelXianScore
(
List
<
String
>
indIds
,
int
date
,
String
compareObjString
,
int
groupNum
,
int
type
)
throws
Exception
{
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/ScoreRuleService.java
View file @
60785873
...
...
@@ -47,7 +47,11 @@ public class ScoreRuleService {
scoreRule
.
setCatalogId
(
catalogId
);
scoreRule
.
setCatalogIdPath
(
catalogIdPath
);
scoreRule
.
setLastUpdater
(
user
);
scoreRuleMapper
.
insert
(
scoreRule
);
if
(
scoreRule
.
getId
()==
null
)
{
scoreRuleMapper
.
insert
(
scoreRule
);
}
else
{
scoreRuleMapper
.
updateByPrimaryKey
(
scoreRule
);
}
return
scoreRule
.
getId
();
}
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/ShortboardRuleService.java
View file @
60785873
...
...
@@ -43,7 +43,11 @@ public class ShortboardRuleService {
shortboardRule
.
setCatalogId
(
catalogId
);
shortboardRule
.
setCatalogIdPath
(
catalogIdPath
);
shortboardRule
.
setLastUpdater
(
user
);
shortboardRuleMapper
.
insert
(
shortboardRule
);
if
(
shortboardRule
.
getId
()==
null
)
{
shortboardRuleMapper
.
insert
(
shortboardRule
);
}
else
{
shortboardRuleMapper
.
updateByPrimaryKey
(
shortboardRule
);
}
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