Commit a2db17c2 by zhangkb

测试修改生成报表3数据

parent 7bf459d9
...@@ -130,13 +130,10 @@ public class BeforeCompareUnitCalActor extends AbstractActor{ ...@@ -130,13 +130,10 @@ 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) {
int result = indicatorsReportService.dealDriveIndReportThreeData( indicatorsReportService.dealDriveIndReportThreeData(
unitDef.getCompareId(), Arrays.asList(unitDef.getIndIds().split(",")), unitDef.getCompareId(), Arrays.asList(unitDef.getIndIds().split(",")),
unitDef.getDate(),code); unitDef.getDate(),code);
if(result==1) { Thread.sleep(10000);
logger.info("下一个对标单元报表3数据计算");
continue;
}
} }
} }
if("0".equals(isTest)) { if("0".equals(isTest)) {
......
...@@ -132,7 +132,7 @@ public class IndicatorsReportService { ...@@ -132,7 +132,7 @@ public class IndicatorsReportService {
reportThreeMapper.deleteByParam(paramMap); reportThreeMapper.deleteByParam(paramMap);
} }
public int dealDriveIndReportThreeData(String compareId,List<String> indIds, public void dealDriveIndReportThreeData(String compareId,List<String> indIds,
Integer date,String code) { Integer date,String code) {
List<IndicatorsReportThree> dataList = new ArrayList<>(); List<IndicatorsReportThree> dataList = new ArrayList<>();
String type = this.getCompareType(date); String type = this.getCompareType(date);
...@@ -251,7 +251,6 @@ public class IndicatorsReportService { ...@@ -251,7 +251,6 @@ public class IndicatorsReportService {
} }
this.batchSaveOrUpdateReportThree(dataList); this.batchSaveOrUpdateReportThree(dataList);
} }
return 1;
} }
//type:0 前三 1末三 //type:0 前三 1末三
......
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