|
|
@@ -298,9 +298,9 @@ public class AppPlanServiceImpl extends ServiceImpl<AppPlanMapper, AppPlan> impl
|
|
|
app.setRoleList(new ArrayList<>());
|
|
|
}
|
|
|
//修改
|
|
|
- QueryWrapper<AppPlan> qw = new QueryWrapper<>();
|
|
|
- qw.lambda().eq(AppPlan::getPlanName, app.getPlanName())
|
|
|
- .ne(AppPlan::getId, plan.getId());
|
|
|
+// QueryWrapper<AppPlan> qw = new QueryWrapper<>();
|
|
|
+// qw.lambda().eq(AppPlan::getPlanName, app.getPlanName())
|
|
|
+// .ne(AppPlan::getId, plan.getId());
|
|
|
|
|
|
// Long size = baseMapper.selectCount(qw);
|
|
|
//
|
|
|
@@ -310,9 +310,11 @@ public class AppPlanServiceImpl extends ServiceImpl<AppPlanMapper, AppPlan> impl
|
|
|
|
|
|
plan.setUpdateTime(new Date());
|
|
|
plan.setModifiedBy(SecurityUtils.getUserId());
|
|
|
+ //前端总是会传递计划创建id,修改时需要排除
|
|
|
+ plan.setPlanCreateOrgId(null);
|
|
|
+ plan.setPlanCreateOrgName(null);
|
|
|
baseMapper.updateById(plan);
|
|
|
|
|
|
-
|
|
|
List<AppPlan> appPlans = baseMapper.selectList(new LambdaQueryWrapper<AppPlan>().eq(AppPlan::getParentId, plan.getId()));
|
|
|
for (AppPlan ap :
|
|
|
appPlans) {
|