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
e8c5bc52
Commit
e8c5bc52
authored
Feb 03, 2021
by
hzc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
确认数据公式运算和对标运算保持一致
parent
2b596302
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
TaskServiceImpl.java
...le/indicators/service/dataenter/impl/TaskServiceImpl.java
+13
-7
No files found.
src/main/java/com/keymobile/indicators/service/dataenter/impl/TaskServiceImpl.java
View file @
e8c5bc52
...
@@ -487,8 +487,18 @@ public class TaskServiceImpl implements TaskService {
...
@@ -487,8 +487,18 @@ public class TaskServiceImpl implements TaskService {
//本期值Map
//本期值Map
Map
<
String
,
String
>
dataMap
=
new
HashMap
<>();
Map
<
String
,
String
>
dataMap
=
new
HashMap
<>();
for
(
TaskIndValue
value
:
values
)
{
for
(
TaskIndValue
value
:
values
)
{
lastDataMap
.
put
(
value
.
getIndId
()+
value
.
getObjId
(),
value
.
getIndLastValue
());
dataMap
.
put
(
value
.
getIndId
()+
value
.
getObjId
(),
value
.
getIndValue
());
String
tmpLastValue
=
value
.
getIndLastValue
();
if
(
StringUtils
.
isNotBlank
(
tmpLastValue
)&&
tmpLastValue
.
indexOf
(
"."
)<
0
)
{
tmpLastValue
+=
".00"
;
}
lastDataMap
.
put
(
value
.
getIndId
()+
value
.
getObjId
(),
tmpLastValue
);
String
tmpValue
=
value
.
getIndValue
();
if
(
StringUtils
.
isNotBlank
(
tmpValue
)&&
tmpValue
.
indexOf
(
"."
)<
0
)
{
tmpValue
+=
".00"
;
}
dataMap
.
put
(
value
.
getIndId
()+
value
.
getObjId
(),
tmpValue
);
generateIndData
(
task
,
vt
,
lastVt
,
value
,
needLast
,
datas
);
generateIndData
(
task
,
vt
,
lastVt
,
value
,
needLast
,
datas
);
}
}
...
@@ -576,11 +586,7 @@ public class TaskServiceImpl implements TaskService {
...
@@ -576,11 +586,7 @@ public class TaskServiceImpl implements TaskService {
try
{
try
{
Map
<
String
,
String
>
tmp
=
new
HashMap
<>();
Map
<
String
,
String
>
tmp
=
new
HashMap
<>();
for
(
String
s
:
indIdList
)
{
for
(
String
s
:
indIdList
)
{
String
tmpValue
=
dataMap
.
get
(
s
+
model
.
getId
());
tmp
.
put
(
s
,
dataMap
.
get
(
s
+
model
.
getId
()));
if
(
StringUtils
.
isNotBlank
(
tmpValue
)&&
tmpValue
.
indexOf
(
"."
)<
0
)
{
tmpValue
+=
".00"
;
}
tmp
.
put
(
s
,
tmpValue
);
}
}
String
nowValue
=
CalculateUtils
.
calculateFormula
(
indicator
.
getIndFormula
(),
tmp
);
String
nowValue
=
CalculateUtils
.
calculateFormula
(
indicator
.
getIndFormula
(),
tmp
);
value
.
setIndValue
(
nowValue
);
value
.
setIndValue
(
nowValue
);
...
...
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