|
@@ -60,7 +60,7 @@ public class GRegulatorBoxServiceImpl extends ServicePlusImpl<GRegulatorBoxMappe
|
|
|
GRegulatorBoxProcess processBo = new GRegulatorBoxProcess();
|
|
|
processBo.setEmrId(item);
|
|
|
processBo.setProcessStatus(bo.getProcessStatus());
|
|
|
- processBo.setProcessComments(bo.getRemarks());
|
|
|
+ processBo.setProcessComments(bo.getProcessComments());
|
|
|
processBo.setUserPost(bo.getPostNameArias());
|
|
|
processList.add(processBo);
|
|
|
});
|
|
@@ -72,21 +72,17 @@ public class GRegulatorBoxServiceImpl extends ServicePlusImpl<GRegulatorBoxMappe
|
|
|
}
|
|
|
|
|
|
public void updateNetworkManage(Collection<GRegulatorBox> boxList) {
|
|
|
- Collection<GRegulatorBox> todoList = new ArrayList<>();
|
|
|
boxList.stream().forEach(obj->{
|
|
|
QueryWrapper<GRegulatorBoxProcess> queryWrapper = new QueryWrapper<GRegulatorBoxProcess>().eq("emr_id", obj.getId());
|
|
|
List<GRegulatorBoxProcess> listed = igRegulatorBoxProcessService.list(queryWrapper);
|
|
|
if (listed.stream().filter(o->o.getProcessStatus().equals("0")).count()==2) {
|
|
|
obj.setProcessStatus("0");
|
|
|
- todoList.add(obj);
|
|
|
+ updateById(obj);
|
|
|
}else if (listed.stream().anyMatch(o -> o.getProcessStatus().equals("1"))) {
|
|
|
obj.setProcessStatus("1");
|
|
|
- todoList.add(obj);
|
|
|
+ updateById(obj);
|
|
|
}
|
|
|
});
|
|
|
- if (!ObjectUtils.isEmpty(todoList)){
|
|
|
- updateBatchById(todoList);
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -213,7 +209,7 @@ public class GRegulatorBoxServiceImpl extends ServicePlusImpl<GRegulatorBoxMappe
|
|
|
GRegulatorBoxProcessBo processBo = new GRegulatorBoxProcessBo();
|
|
|
processBo.setEmrId(bo.getId());
|
|
|
processBo.setProcessStatus(bo.getProcessStatus());
|
|
|
- processBo.setProcessComments(bo.getRemark());
|
|
|
+ processBo.setProcessComments(bo.getProcessComments());
|
|
|
processBo.setUserPost(bo.getPostNameArias());
|
|
|
igRegulatorBoxProcessService.insertByBo(processBo);
|
|
|
}
|
|
@@ -262,10 +258,12 @@ public class GRegulatorBoxServiceImpl extends ServicePlusImpl<GRegulatorBoxMappe
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
|
|
|
if (isValid) {
|
|
|
//TODO 做一些业务上的校验,判断是否需要校验
|
|
|
}
|
|
|
+ igRegulatorBoxProcessService.remove(new QueryWrapper<GRegulatorBoxProcess>().in("emr_id", ids));
|
|
|
return removeByIds(ids);
|
|
|
}
|
|
|
}
|