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
b57be7db
Commit
b57be7db
authored
Nov 05, 2020
by
hzc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试报表一没数据
parent
12966555
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
IndScorecardService.java
...ile/indicators/service/hytobacco/IndScorecardService.java
+3
-0
IndicatorsReportService.java
...le/indicators/service/report/IndicatorsReportService.java
+7
-1
No files found.
src/main/java/com/keymobile/indicators/service/hytobacco/IndScorecardService.java
View file @
b57be7db
...
@@ -276,6 +276,9 @@ public class IndScorecardService {
...
@@ -276,6 +276,9 @@ public class IndScorecardService {
}
}
indImproveScoreValue
=
String
.
format
(
"%.4f"
,
new
BigDecimal
(
improveScore
));
indImproveScoreValue
=
String
.
format
(
"%.4f"
,
new
BigDecimal
(
improveScore
));
result
.
put
(
"improveScore"
,
indImproveScoreValue
);
result
.
put
(
"improveScore"
,
indImproveScoreValue
);
}
else
{
//没有同期值
result
.
put
(
"improveScore"
,
"No"
);
//表示不纳入单位得分计算标识
}
}
}
else
{
}
else
{
result
.
put
(
"improveScore"
,
"No"
);
//表示不纳入单位得分计算标识
result
.
put
(
"improveScore"
,
"No"
);
//表示不纳入单位得分计算标识
...
...
src/main/java/com/keymobile/indicators/service/report/IndicatorsReportService.java
View file @
b57be7db
...
@@ -7,6 +7,7 @@ import java.util.LinkedHashMap;
...
@@ -7,6 +7,7 @@ import java.util.LinkedHashMap;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -30,6 +31,7 @@ import com.keymobile.indicators.model.mapper.report.ReportTwoMapper;
...
@@ -30,6 +31,7 @@ import com.keymobile.indicators.model.mapper.report.ReportTwoMapper;
import
com.keymobile.indicators.service.hytobacco.BaseIndDataService
;
import
com.keymobile.indicators.service.hytobacco.BaseIndDataService
;
import
com.keymobile.indicators.utils.CalculateUtils
;
import
com.keymobile.indicators.utils.CalculateUtils
;
@Slf4j
@Service
@Service
public
class
IndicatorsReportService
{
public
class
IndicatorsReportService
{
private
Logger
logger
=
LoggerFactory
.
getLogger
(
IndicatorsReportService
.
class
);
private
Logger
logger
=
LoggerFactory
.
getLogger
(
IndicatorsReportService
.
class
);
...
@@ -547,6 +549,7 @@ public class IndicatorsReportService {
...
@@ -547,6 +549,7 @@ public class IndicatorsReportService {
@Async
@Async
public
String
dealReportOne
(
String
compareId
,
List
<
String
>
indIds
,
public
String
dealReportOne
(
String
compareId
,
List
<
String
>
indIds
,
List
<
String
>
compareObjs
,
Integer
date
,
String
code
)
{
List
<
String
>
compareObjs
,
Integer
date
,
String
code
)
{
int
count
=
0
;
for
(
String
indId
:
indIds
)
{
for
(
String
indId
:
indIds
)
{
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"indId"
,
indId
);
paramMap
.
put
(
"indId"
,
indId
);
...
@@ -602,8 +605,10 @@ public class IndicatorsReportService {
...
@@ -602,8 +605,10 @@ public class IndicatorsReportService {
}
}
}
}
}
}
count
+=
datas
.
size
();
this
.
batchSaveOrUpdate
(
datas
);
//批量新增或修改
this
.
batchSaveOrUpdate
(
datas
);
//批量新增或修改
}
}
log
.
info
(
"compareId={}:date={}报表一完成,生成{}条数据"
,
compareId
,
date
,
count
);
return
"deal indicators report one success"
;
return
"deal indicators report one success"
;
}
}
...
@@ -1029,7 +1034,8 @@ public class IndicatorsReportService {
...
@@ -1029,7 +1034,8 @@ public class IndicatorsReportService {
if
(
StringUtils
.
isNotBlank
(
sameCalData
.
getScore
()))
{
if
(
StringUtils
.
isNotBlank
(
sameCalData
.
getScore
()))
{
indReportData
.
setLastSameScore
(
new
BigDecimal
(
sameCalData
.
getScore
()));
indReportData
.
setLastSameScore
(
new
BigDecimal
(
sameCalData
.
getScore
()));
}
}
if
(
StringUtils
.
isNotBlank
(
sameCalData
.
getImproveScore
()))
{
if
(
StringUtils
.
isNotBlank
(
sameCalData
.
getImproveScore
())
&&!
"No"
.
equals
(
sameCalData
.
getImproveScore
()))
{
indReportData
.
setLastSameImprove
(
new
BigDecimal
(
sameCalData
.
getImproveScore
()));
indReportData
.
setLastSameImprove
(
new
BigDecimal
(
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