|
|
@@ -180,6 +180,7 @@ public class AppPlanServiceImpl extends ServiceImpl<AppPlanMapper, AppPlan> impl
|
|
|
plan.setId(dto.getId());
|
|
|
plan.setDistribute("1");
|
|
|
plan.setPlanStatus(1);
|
|
|
+ plan.setBuildTaskNow(null);
|
|
|
baseMapper.updateById(plan);
|
|
|
}
|
|
|
|
|
|
@@ -220,6 +221,7 @@ public class AppPlanServiceImpl extends ServiceImpl<AppPlanMapper, AppPlan> impl
|
|
|
//设置下发状态为下发
|
|
|
plan.setDistribute("1");
|
|
|
plan.setPlanStatus(1);
|
|
|
+
|
|
|
baseMapper.updateById(plan);
|
|
|
return 1;
|
|
|
}
|
|
|
@@ -280,12 +282,12 @@ public class AppPlanServiceImpl extends ServiceImpl<AppPlanMapper, AppPlan> impl
|
|
|
throw new RuntimeException("计划名称重复,请确认!");
|
|
|
}
|
|
|
//如果计划为行社并且勾选立即生效
|
|
|
- if (app.getOrgType()==3&&app.isBuildTaskNow()) {
|
|
|
+ if (app.getExecOrgType() == 3 && app.getBuildTaskNow()==1) {
|
|
|
plan.setPlanStatus(1);
|
|
|
} else {
|
|
|
plan.setPlanStatus(0);
|
|
|
}
|
|
|
- plan.setBuildTaskNow(app.isBuildTaskNow());
|
|
|
+ plan.setBuildTaskNow(app.getBuildTaskNow());
|
|
|
plan.setDistribute("0");
|
|
|
baseMapper.insert(plan);
|
|
|
Long id = plan.getId();
|
|
|
@@ -604,7 +606,7 @@ public class AppPlanServiceImpl extends ServiceImpl<AppPlanMapper, AppPlan> impl
|
|
|
plan.setExecOrgType(app.getExecOrgType());
|
|
|
plan.setDistributePlanStatus(app.getDistributePlanStatus());
|
|
|
plan.setCount(app.getCount());
|
|
|
-
|
|
|
+ plan.setBuildTaskNow(app.getBuildTaskNow());
|
|
|
return plan;
|
|
|
}
|
|
|
|
|
|
@@ -637,6 +639,7 @@ public class AppPlanServiceImpl extends ServiceImpl<AppPlanMapper, AppPlan> impl
|
|
|
|
|
|
plan.setId(app.getId());
|
|
|
plan.setNotResumptionOnRest(app.getNotResumptionOnRest());
|
|
|
+ plan.setBuildTaskNow(app.getBuildTaskNow());
|
|
|
return plan;
|
|
|
}
|
|
|
|