|
@@ -305,6 +305,9 @@ public class PlanServiceImpl extends ServiceImpl<PlanMapper, Plan> implements Pl
|
|
|
List<String> foremanIds = planList.stream().map(Plan::getForemanId).distinct().collect(Collectors.toList());
|
|
|
List<User> userList = userMapper.selectBatchIds(foremanIds);
|
|
|
for (Plan plan : planList) {
|
|
|
+ if(plan.getStatus()==1){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
Optional<User> first = userList.stream().filter(ul -> ul.getId().equals(plan.getForemanId())).findFirst();
|
|
|
if(first.isPresent()){
|
|
|
//todo:推送到企业微信
|
|
@@ -316,6 +319,7 @@ public class PlanServiceImpl extends ServiceImpl<PlanMapper, Plan> implements Pl
|
|
|
plan.setStatus(1);
|
|
|
}else msg.setError("验证失败");
|
|
|
}
|
|
|
+ updateBatchById(planList);
|
|
|
}
|
|
|
return msg;
|
|
|
}
|