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
f9b26cf3
Commit
f9b26cf3
authored
Aug 18, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改同比提升根据增幅计算类型进行计算排名
parent
3680e51f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
IndicatorsReportService.java
...le/indicators/service/report/IndicatorsReportService.java
+4
-4
No files found.
src/main/java/com/keymobile/indicators/service/report/IndicatorsReportService.java
View file @
f9b26cf3
...
...
@@ -444,9 +444,9 @@ public class IndicatorsReportService {
&&
!
"Infinite"
.
equals
(
currentCalData
.
getValue
())
&&
StringUtils
.
isNotBlank
(
currentCalData
.
getValue
()))
{
//同比提升单位指本期与同期值相比要好的单位(考虑指标的正反向)
rankMap
.
put
(
currentCalData
.
getCompareObj
(),
String
.
valueOf
(
Double
.
parseDouble
(
currentCalData
.
getValue
())-
Double
.
parseDouble
(
sameCalData
.
getValue
()
)));
rankMap
.
put
(
currentCalData
.
getCompareObj
(),
CalculateUtils
.
calGowth
(
currentCalData
.
getValue
(),
sameCalData
.
getValue
(),
driveIndDef
.
getGrowCalType
(
)));
//如果是正向指标
if
(
"0"
.
equals
(
indRule
))
{
if
(
Double
.
parseDouble
(
currentCalData
.
getValue
())-
...
...
@@ -538,7 +538,7 @@ public class IndicatorsReportService {
calData
.
getIndId
(),
(
calData
.
getDate
()-
100
),
calData
.
getCompareObj
());
if
(
sameCalData
!=
null
)
{
indReportData
.
setLastSameValue
(
sameCalData
.
getValue
());
indReportData
.
setLastSameRank
(
sameCalData
.
getRank
().
toString
());
indReportData
.
setLastSameRank
(
sameCalData
.
getRank
()
==
null
?
null
:
sameCalData
.
getRank
()
.
toString
());
indReportData
.
setLastSameScore
(
sameCalData
.
getScore
());
indReportData
.
setLastSameImprove
(
sameCalData
.
getImproveScore
());
//算同比
...
...
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