|
@@ -785,6 +785,24 @@ public class SysImplementPlanManager {
|
|
);
|
|
);
|
|
copied.setPlanDetails(CollUtil.isEmpty(details) ? null : details.get(0));
|
|
copied.setPlanDetails(CollUtil.isEmpty(details) ? null : details.get(0));
|
|
|
|
|
|
|
|
+ // 获取父级
|
|
|
|
+ Integer parentId = p.getParentId();
|
|
|
|
+
|
|
|
|
+ if (parentId == 0){
|
|
|
|
+ copied.setParentPlanAvailScore(0L);
|
|
|
|
+ copied.setParentPlanScore(0L);
|
|
|
|
+ } else {
|
|
|
|
+ SysImplementPlan pp = implementPlanService.getById(p.getParentId());
|
|
|
|
+ if (pp == null){
|
|
|
|
+ copied.setParentPlanAvailScore(0L);
|
|
|
|
+ copied.setParentPlanScore(0L);
|
|
|
|
+ } else {
|
|
|
|
+ copied.setParentPlanAvailScore(pp.getAvailScore());
|
|
|
|
+ copied.setParentPlanScore(pp.getPlanScore());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
return copied;
|
|
return copied;
|
|
}
|
|
}
|