Commit 33412889 by zhangkb

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

parent d5174c76
......@@ -130,8 +130,6 @@ public class BeforeCompareUnitCalActor extends AbstractActor{
indicatorsReportService.deleteReportThreeDataByParam(currentDate,
new ArrayList<String>(compareObjMap.keySet()),code);
for(CompareUnitDef unitDef : currentCompareUnitDef) {
Thread.currentThread().sleep(10000);
logger.info("进行报表3数据计算");
indicatorsReportService.dealDriveIndReportThreeData(
unitDef.getCompareId(), Arrays.asList(unitDef.getIndIds().split(",")),
unitDef.getDate(),code);
......
......@@ -59,7 +59,7 @@ public class IndicatorsReportService {
return reportTwoData.getId();
}
public void batchSaveOrUpdateReportThree(List<IndicatorsReportThree> reportThreeDatas) {
public synchronized void batchSaveOrUpdateReportThree(List<IndicatorsReportThree> reportThreeDatas) {
List<IndicatorsReportThree> addList = new ArrayList<>();
List<IndicatorsReportThree> updateList = new ArrayList<>();
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