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
2a0b3cb3
Commit
2a0b3cb3
authored
Jul 23, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改获取指标正反向类型值
parent
0e0ce331
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
DriveIndIdObjCalActor.java
...dicators/akka/actor/indicators/DriveIndIdObjCalActor.java
+1
-1
IndScorecardService.java
...ile/indicators/service/hytobacco/IndScorecardService.java
+1
-1
IndicatorsValueService.java
.../indicators/service/hytobacco/IndicatorsValueService.java
+3
-3
No files found.
src/main/java/com/keymobile/indicators/akka/actor/indicators/DriveIndIdObjCalActor.java
View file @
2a0b3cb3
...
@@ -97,7 +97,7 @@ public class DriveIndIdObjCalActor extends AbstractActor{
...
@@ -97,7 +97,7 @@ public class DriveIndIdObjCalActor extends AbstractActor{
DriveIndDef
driveIndDef
=
driveIndDefService
.
getById
(
driveIndId
);
DriveIndDef
driveIndDef
=
driveIndDefService
.
getById
(
driveIndId
);
unit
=
driveIndDef
.
getIndUnit
();
//指标单位
unit
=
driveIndDef
.
getIndUnit
();
//指标单位
indType
=
driveIndDef
.
getInd
Typ
e
();
//指标类型:正向 反向
indType
=
driveIndDef
.
getInd
Rul
e
();
//指标类型:正向 反向
scoreCardId
=
driveIndDef
.
getIndCalScoreRule
();
//指标评分规则
scoreCardId
=
driveIndDef
.
getIndCalScoreRule
();
//指标评分规则
code
=
driveIndDef
.
getCode
();
code
=
driveIndDef
.
getCode
();
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/IndScorecardService.java
View file @
2a0b3cb3
...
@@ -156,7 +156,7 @@ public class IndScorecardService {
...
@@ -156,7 +156,7 @@ public class IndScorecardService {
DriveIndDef
driveIndDef
=
driveIndDefService
.
getById
(
indId
);
DriveIndDef
driveIndDef
=
driveIndDefService
.
getById
(
indId
);
if
(
driveIndDef
!=
null
)
{
if
(
driveIndDef
!=
null
)
{
//获取指标是正向还是反向类型
//获取指标是正向还是反向类型
String
acsType
=
driveIndDef
.
getInd
Typ
e
();
String
acsType
=
driveIndDef
.
getInd
Rul
e
();
String
unit
=
driveIndDef
.
getIndUnit
();
String
unit
=
driveIndDef
.
getIndUnit
();
List
<
DriveIndCalResultDef
>
currentDriveResult
=
driveIndCalResultDefMapper
List
<
DriveIndCalResultDef
>
currentDriveResult
=
driveIndCalResultDefMapper
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/IndicatorsValueService.java
View file @
2a0b3cb3
...
@@ -203,9 +203,9 @@ public class IndicatorsValueService {
...
@@ -203,9 +203,9 @@ public class IndicatorsValueService {
allComObjDataMap
.
put
(
compareObj
,
dataMap
);
allComObjDataMap
.
put
(
compareObj
,
dataMap
);
}
}
//排列同期指标值
//排列同期指标值
Map
<
String
,
Integer
>
sameValueRank
=
CalculateUtils
.
rankValue
(
valueMap
,
deiveIndDef
.
getInd
Typ
e
());
Map
<
String
,
Integer
>
sameValueRank
=
CalculateUtils
.
rankValue
(
valueMap
,
deiveIndDef
.
getInd
Rul
e
());
//排名增幅排名
//排名增幅排名
Map
<
String
,
Integer
>
gowthValueRank
=
CalculateUtils
.
rankValue
(
gowthMap
,
deiveIndDef
.
getInd
Typ
e
());
Map
<
String
,
Integer
>
gowthValueRank
=
CalculateUtils
.
rankValue
(
gowthMap
,
deiveIndDef
.
getInd
Rul
e
());
for
(
Entry
<
String
,
Object
>
entry:
allComObjDataMap
.
entrySet
())
{
for
(
Entry
<
String
,
Object
>
entry:
allComObjDataMap
.
entrySet
())
{
Map
<
String
,
String
>
dataMap
=
(
Map
<
String
,
String
>)
entry
.
getValue
();
Map
<
String
,
String
>
dataMap
=
(
Map
<
String
,
String
>)
entry
.
getValue
();
Integer
sameRank
=
sameValueRank
.
get
(
entry
.
getKey
());
Integer
sameRank
=
sameValueRank
.
get
(
entry
.
getKey
());
...
@@ -421,7 +421,7 @@ public class IndicatorsValueService {
...
@@ -421,7 +421,7 @@ public class IndicatorsValueService {
row
.
getCell
(
4
).
setCellValue
(
sameValue
);
row
.
getCell
(
4
).
setCellValue
(
sameValue
);
row
.
getCell
(
5
).
setCellValue
(
rate
);
row
.
getCell
(
5
).
setCellValue
(
rate
);
String
acsType
=
driveIndDef
.
getInd
Typ
e
();
String
acsType
=
driveIndDef
.
getInd
Rul
e
();
if
(
"0"
.
equals
(
acsType
))
{
if
(
"0"
.
equals
(
acsType
))
{
if
(
Double
.
valueOf
(
rate
)>
0
)
{
if
(
Double
.
valueOf
(
rate
)>
0
)
{
row
.
getCell
(
6
).
setCellValue
(
"同比趋好"
);
row
.
getCell
(
6
).
setCellValue
(
"同比趋好"
);
...
...
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