Commit 33412889 by zhangkb

测试修改报表3生成数据逻辑

parent d5174c76
...@@ -130,8 +130,6 @@ public class BeforeCompareUnitCalActor extends AbstractActor{ ...@@ -130,8 +130,6 @@ public class BeforeCompareUnitCalActor extends AbstractActor{
indicatorsReportService.deleteReportThreeDataByParam(currentDate, indicatorsReportService.deleteReportThreeDataByParam(currentDate,
new ArrayList<String>(compareObjMap.keySet()),code); new ArrayList<String>(compareObjMap.keySet()),code);
for(CompareUnitDef unitDef : currentCompareUnitDef) { for(CompareUnitDef unitDef : currentCompareUnitDef) {
Thread.currentThread().sleep(10000);
logger.info("进行报表3数据计算");
indicatorsReportService.dealDriveIndReportThreeData( indicatorsReportService.dealDriveIndReportThreeData(
unitDef.getCompareId(), Arrays.asList(unitDef.getIndIds().split(",")), unitDef.getCompareId(), Arrays.asList(unitDef.getIndIds().split(",")),
unitDef.getDate(),code); unitDef.getDate(),code);
......
...@@ -59,7 +59,7 @@ public class IndicatorsReportService { ...@@ -59,7 +59,7 @@ public class IndicatorsReportService {
return reportTwoData.getId(); return reportTwoData.getId();
} }
public void batchSaveOrUpdateReportThree(List<IndicatorsReportThree> reportThreeDatas) { public synchronized void batchSaveOrUpdateReportThree(List<IndicatorsReportThree> reportThreeDatas) {
List<IndicatorsReportThree> addList = new ArrayList<>(); List<IndicatorsReportThree> addList = new ArrayList<>();
List<IndicatorsReportThree> updateList = new ArrayList<>(); List<IndicatorsReportThree> updateList = new ArrayList<>();
for(IndicatorsReportThree reportThreeData : reportThreeDatas) { for(IndicatorsReportThree reportThreeData : reportThreeDatas) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment