专病路径修改
This commit is contained in:
parent
5966ffff2e
commit
cb706e689e
@ -117,12 +117,6 @@ public class SpecialDiseaseNodeServiceImpl implements ISpecialDiseaseNodeService
|
|||||||
if (CollectionUtils.isEmpty(specialDiseaseNode.getSpecialDiseaseNodeList())) {
|
if (CollectionUtils.isEmpty(specialDiseaseNode.getSpecialDiseaseNodeList())) {
|
||||||
return AjaxResult.success();
|
return AjaxResult.success();
|
||||||
}
|
}
|
||||||
List<Integer> routeNodeDayList = specialDiseaseNode.getSpecialDiseaseNodeList().stream().filter(Objects::nonNull).filter(item -> Objects.nonNull(item.getRouteNodeDay())).map(SpecialDiseaseNode::getRouteNodeDay).collect(Collectors.toList());
|
|
||||||
long size = routeNodeDayList.stream().distinct().count();
|
|
||||||
if (routeNodeDayList.size() != size) {
|
|
||||||
log.info("专病路径管理节点天数重复");
|
|
||||||
throw new ServiceException("专病路径管理节点天数重复!");
|
|
||||||
}
|
|
||||||
ArrayList<SpecialDiseaseNodeVO> specialDiseaseNodeVOS = new ArrayList<>();
|
ArrayList<SpecialDiseaseNodeVO> specialDiseaseNodeVOS = new ArrayList<>();
|
||||||
for (SpecialDiseaseNodeVO diseaseNode : specialDiseaseNode.getSpecialDiseaseNodeList()) {
|
for (SpecialDiseaseNodeVO diseaseNode : specialDiseaseNode.getSpecialDiseaseNodeList()) {
|
||||||
if (StringUtils.isNotBlank(diseaseNode.getRouteNodeName()) && Objects.nonNull(diseaseNode.getRouteNodeDay()) && StringUtils.isNotBlank(diseaseNode.getTaskType()) && StringUtils.isNotBlank(diseaseNode.getTaskSubdivision()) && StringUtils.isNotBlank(diseaseNode.getTaskStatus())) {
|
if (StringUtils.isNotBlank(diseaseNode.getRouteNodeName()) && Objects.nonNull(diseaseNode.getRouteNodeDay()) && StringUtils.isNotBlank(diseaseNode.getTaskType()) && StringUtils.isNotBlank(diseaseNode.getTaskSubdivision()) && StringUtils.isNotBlank(diseaseNode.getTaskStatus())) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user