Commit 7ec6a9ad by zhangkb

对标计算前清除之前内容参数map传参问题修复;

parent 23edbc68
...@@ -122,17 +122,20 @@ public class DriveIndCalResultService { ...@@ -122,17 +122,20 @@ public class DriveIndCalResultService {
Integer currentDate,Integer sameDate,String code) { Integer currentDate,Integer sameDate,String code) {
if(StringUtils.isNotBlank(code) && !compareIds.isEmpty() && if(StringUtils.isNotBlank(code) && !compareIds.isEmpty() &&
currentDate!=null && sameDate!=null) { currentDate!=null && sameDate!=null) {
List<Integer> dates = new ArrayList<>(); List<Integer> param1Dates = new ArrayList<>();
List<Integer> param2Dates = new ArrayList<>();
Map<String,Object> param1 = new HashMap<>(); Map<String,Object> param1 = new HashMap<>();
Map<String,Object> param2 = new HashMap<>(); Map<String,Object> param2 = new HashMap<>();
dates.add(currentDate); param1Dates.add(currentDate);
param1.put("code", code); param1.put("code", code);
param1.put("compareIds", compareIds); param1.put("compareIds", compareIds);
param1.put("dates", dates); param1.put("dates", param1Dates);
dates.add(sameDate);
param2Dates.add(currentDate);
param2Dates.add(sameDate);
param2.put("code", code); param2.put("code", code);
param2.put("compareIds", compareIds); param2.put("compareIds", compareIds);
param2.put("dates", dates); param2.put("dates", param2Dates);
//删除数据 //删除数据
reportOneMapper.deleteByCompareIdInAndDateIn(param1); reportOneMapper.deleteByCompareIdInAndDateIn(param1);
......
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