|
|
@@ -252,6 +252,15 @@ public class CoreMonitoringRetrievalTaskServiceImpl extends ServiceImpl<CoreMoni
|
|
|
//立即生效的计划要排除截至时间在当前时间之前的数据
|
|
|
List<CoreMonitoringRetrievalTask> lista = taskList.stream().filter(r -> r.getPlanEndTime().after(new Date())).collect(Collectors.toList());
|
|
|
if (CollectionUtil.isNotEmpty(lista)) {
|
|
|
+ //对list进行重新编号和保存
|
|
|
+ for(int i=0;i<lista.size();i++){
|
|
|
+ lista.get(i).setOrderNum(i+1);
|
|
|
+ // 第" + frequency + "次调阅
|
|
|
+ String oldName = lista.get(i).getTaskName();
|
|
|
+ String str = "第"+(i+1)+"次调阅";
|
|
|
+ int index = oldName.lastIndexOf("第");
|
|
|
+ lista.get(i).setTaskName(oldName.substring(0,index)+str);
|
|
|
+ }
|
|
|
this.saveBatch(lista);
|
|
|
}
|
|
|
}
|