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
e033374b
Commit
e033374b
authored
Jun 02, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评分卡改善提升添加是否纳入单位得分计算代码
parent
ebee3499
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
1 deletion
+8
-1
IndicatorsValueCtrl.java
...ymobile/indicators/api/hytobacco/IndicatorsValueCtrl.java
+1
-1
IndScorecard.java
...obile/indicators/model/entity/scorecard/IndScorecard.java
+1
-0
IndScorecardService.java
...ile/indicators/service/hytobacco/IndScorecardService.java
+4
-0
IndicatorsValueService.java
.../indicators/service/hytobacco/IndicatorsValueService.java
+2
-0
No files found.
src/main/java/com/keymobile/indicators/api/hytobacco/IndicatorsValueCtrl.java
View file @
e033374b
...
...
@@ -104,6 +104,6 @@ public class IndicatorsValueCtrl {
@PostMapping
(
value
=
"/fillExcelFileTen"
)
public
void
fillExcelXianScore
(
@RequestBody
List
<
String
>
indIds
,
@RequestParam
int
date
,
@RequestParam
String
compareObjString
,
@RequestParam
int
groupNum
,
@RequestParam
int
type
)
throws
Exception
{
indicatorsValueService
.
fillExcelXian
JuanYanGroup
(
indIds
,
date
,
compareObjString
,
groupNum
,
type
);
indicatorsValueService
.
fillExcelXian
Score
(
indIds
,
date
,
compareObjString
,
groupNum
,
type
);
}
}
src/main/java/com/keymobile/indicators/model/entity/scorecard/IndScorecard.java
View file @
e033374b
...
...
@@ -39,6 +39,7 @@ public class IndScorecard implements Serializable{
private
double
worstIndScore
;
//最差指标分
private
String
otherCalFormula
;
//其他计算公式
//改善提升
private
String
isIncluScore
;
//是否纳入单位计分 0:不纳入 1:纳入
private
double
limitScore
;
//上限分数
private
List
<
ImproveScoreDef
>
improveScoreItem
=
new
ArrayList
<>();
//改善提升分数
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/IndScorecardService.java
View file @
e033374b
...
...
@@ -166,6 +166,7 @@ public class IndScorecardService {
}
}
//改善提升
if
(
"1"
.
equals
(
scoreCard
.
getIsIncluScore
()))
{
//纳入单位得分计算
//同期
Optional
<
DriveIndCalResult
>
sameCompareObjResult
=
driveIndResultRepo
.
findByIndIdAndDateAndCompareObj
(
indId
,
(
date
-
100
),
compareObj
);
...
...
@@ -181,6 +182,9 @@ public class IndScorecardService {
indImproveScoreValue
=
String
.
format
(
"%.4f"
,
new
BigDecimal
(
improveScore
));
result
.
put
(
"improveScore"
,
indImproveScoreValue
);
}
}
else
{
result
.
put
(
"improveScore"
,
"No"
);
//表示不纳入单位得分计算标识
}
}
}
else
{
logger
.
error
(
"id:"
+
indScorecardId
+
" 的评分卡不存在"
);
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/IndicatorsValueService.java
View file @
e033374b
...
...
@@ -94,7 +94,9 @@ public class IndicatorsValueService {
.
findByIndIdAndDateAndCompareObj
(
indId
,
date
,
compareObj
);
if
(
driveIndCalResult
.
isPresent
())
{
scoreValue
.
add
(
driveIndCalResult
.
get
().
getScore
());
if
(!
"No"
.
equals
(
driveIndCalResult
.
get
().
getImproveScore
()))
{
//改善提升如果是纳入单位得分计算的
improveValue
.
add
(
driveIndCalResult
.
get
().
getImproveScore
());
}
}
else
{
scoreValue
.
add
(
"0"
);
improveValue
.
add
(
"0"
);
...
...
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