|
@@ -138,9 +138,13 @@ public class ResponsibilityServiceImpl extends ServiceImpl<ResponsibilityMapper,
|
|
|
if (Objects.isNull(center)) {
|
|
|
throw new CostException(ErrorCodeEnum.DATA_NOT_EXIST);
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
- // 如果修改父节点节点(只有两层的情况)
|
|
|
+ // 不管是哪个绑定到父级目录下
|
|
|
+// if (responsibilityEditDTO.getParentId() == 0) {
|
|
|
+//
|
|
|
+// }
|
|
|
+//
|
|
|
+//
|
|
|
+// // 如果修改父节点节点(只有两层的情况)
|
|
|
if (center.getResponsibilityLevel() == 1) {
|
|
|
this.updateParent(responsibilityEditDTO, center, user.getHospId());
|
|
|
return;
|
|
@@ -166,7 +170,7 @@ public class ResponsibilityServiceImpl extends ServiceImpl<ResponsibilityMapper,
|
|
|
// 如果修改是否汇总中心 从是 -> 否那么子节点直接删除
|
|
|
if (responsibility.getIsGatherCenter() == 1 && dto.getIsGatherCenter() == 2) {
|
|
|
this.removeByIds(child.stream().map(Responsibility::getId).collect(Collectors.toList()));
|
|
|
- return;
|
|
|
+// return;
|
|
|
}
|
|
|
|
|
|
this.checkCode(dto.getResponsibilityCode(), hospId);
|