|
@@ -223,6 +223,8 @@ public class ResponsibilityServiceImpl extends ServiceImpl<ResponsibilityMapper,
|
|
|
}
|
|
|
if (dto.getParentId() == 0) {
|
|
|
newResponsibility.setResponsibilityLevel(1);
|
|
|
+ // 永远为2的情况
|
|
|
+ newResponsibility.setIsGatherCenter(2);
|
|
|
}
|
|
|
this.save(newResponsibility);
|
|
|
}
|
|
@@ -272,7 +274,10 @@ public class ResponsibilityServiceImpl extends ServiceImpl<ResponsibilityMapper,
|
|
|
this.save(newResponsibility);
|
|
|
|
|
|
// 将原来所有父节点下数据关联到新的父节点下
|
|
|
- child.forEach(i -> i.setParentId(newResponsibility.getId()));
|
|
|
+ child.forEach(i -> {
|
|
|
+ i.setParentId(newResponsibility.getId());
|
|
|
+ i.setIsGatherCenter(2);
|
|
|
+ });
|
|
|
this.updateBatchById(child);
|
|
|
|
|
|
}
|