Răsfoiți Sursa

恢复履职次数

luojun 2 ani în urmă
părinte
comite
7e6636e345

+ 3 - 2
soc-modules/soc-modules-core/src/main/java/com/xunmei/core/resumption/service/impl/AppPlanServiceImpl.java

@@ -358,7 +358,7 @@ public class AppPlanServiceImpl extends ServiceImpl<AppPlanMapper, AppPlan> impl
                 ap.setPlanExec(plan.getPlanExec());
                 ap.setModifiedBy(SecurityUtils.getUserId());
                 ap.setPlanName(plan.getPlanName());
-
+                ap.setCount(plan.getCount());
                 baseMapper.updateById(ap);
 
                 if (app.getRoleList().size() > 0) {
@@ -547,7 +547,8 @@ public class AppPlanServiceImpl extends ServiceImpl<AppPlanMapper, AppPlan> impl
         if (orgs.size() > 0) {
             appPlanVo.setOrgId(orgs.get(0).getOrgId());
         }
-
+        AppPlan ap = baseMapper.selectById(appPlan.getParentId());
+        appPlanVo.setParentCount(ap != null ? Integer.parseInt(ap.getCount()) : 1);
 
         return appPlanVo;
     }

+ 1 - 1
soc-modules/soc-modules-core/src/main/java/com/xunmei/core/resumption/vo/appPlan/AppPlanVo.java

@@ -20,7 +20,7 @@ import java.util.List;
 @NoArgsConstructor
 @AllArgsConstructor
 public class AppPlanVo extends PageDto<AppPlan> {
-
+    private Integer parentCount;
     private List<Long> ids;
     private Long id;
     private Integer buildTaskNow;