|  | @@ -337,7 +337,7 @@ public class CoreEduTrainingPlanServiceImpl extends ServiceImpl<CoreEduTrainingP
 | 
	
		
			
				|  |  |              coreEduTrainingTaskService.delByStartTimeAndEndTimeAndPlanIdList(list, null, null);
 | 
	
		
			
				|  |  |              //使用中 状态,支持编辑名称,所以这里只需要修改计划名称就行了
 | 
	
		
			
				|  |  |              this.update(new LambdaUpdateWrapper<CoreEduTrainingPlan>().in(CoreEduTrainingPlan::getId, list)
 | 
	
		
			
				|  |  | -                    .set(CoreEduTrainingPlan::getPlanName, plan.getPlanName())
 | 
	
		
			
				|  |  | +                    .set(CoreEduTrainingPlan::getPlanName, request.getPlanName())
 | 
	
		
			
				|  |  |                      .set(CoreEduTrainingPlan::getUpdateTime, new Date())
 | 
	
		
			
				|  |  |                      .set(CoreEduTrainingPlan::getUpdateBy, String.valueOf(SecurityUtils.getLoginUser().getSysUser().getId()))
 | 
	
		
			
				|  |  |              );
 | 
	
	
		
			
				|  | @@ -352,7 +352,13 @@ public class CoreEduTrainingPlanServiceImpl extends ServiceImpl<CoreEduTrainingP
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  }, threadPoolTaskExecutor);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +        } else {
 | 
	
		
			
				|  |  | +            //使用中 状态,支持编辑名称,所以这里只需要修改计划名称就行了
 | 
	
		
			
				|  |  | +            this.update(new LambdaUpdateWrapper<CoreEduTrainingPlan>().in(CoreEduTrainingPlan::getId, list)
 | 
	
		
			
				|  |  | +                    .set(CoreEduTrainingPlan::getPlanName, request.getPlanName())
 | 
	
		
			
				|  |  | +                    .set(CoreEduTrainingPlan::getUpdateTime, new Date())
 | 
	
		
			
				|  |  | +                    .set(CoreEduTrainingPlan::getUpdateBy, String.valueOf(SecurityUtils.getLoginUser().getSysUser().getId()))
 | 
	
		
			
				|  |  | +            );
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      }
 | 
	
	
		
			
				|  | @@ -458,7 +464,7 @@ public class CoreEduTrainingPlanServiceImpl extends ServiceImpl<CoreEduTrainingP
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              List<CoreEduTrainingPlan> planList = null;
 | 
	
		
			
				|  |  |              if (plan.getIssue() == 1) {
 | 
	
		
			
				|  |  | -                planList = buildPlanData(plan, null, false,0);
 | 
	
		
			
				|  |  | +                planList = buildPlanData(plan, null, false, 0);
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  |                  planList = ListUtil.list(true, plan);
 | 
	
		
			
				|  |  |              }
 | 
	
	
		
			
				|  | @@ -687,7 +693,7 @@ public class CoreEduTrainingPlanServiceImpl extends ServiceImpl<CoreEduTrainingP
 | 
	
		
			
				|  |  |                  .eq(CoreEduTrainingPlan::getParentId, planId)
 | 
	
		
			
				|  |  |                  .select(CoreEduTrainingPlan::getId).list();
 | 
	
		
			
				|  |  |          if (planList.isEmpty()) {
 | 
	
		
			
				|  |  | -            planList = buildPlanData(plan, new ArrayList<>(), true,status);
 | 
	
		
			
				|  |  | +            planList = buildPlanData(plan, new ArrayList<>(), true, status);
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  |              planList.forEach(plan1 -> plan1.setPlanStatus(EduTrainingPlanStatus.USING.getCode()));
 | 
	
		
			
				|  |  |              List<Long> collect = planList.stream().map(CoreEduTrainingPlan::getId).collect(Collectors.toList());
 | 
	
	
		
			
				|  | @@ -696,7 +702,7 @@ public class CoreEduTrainingPlanServiceImpl extends ServiceImpl<CoreEduTrainingP
 | 
	
		
			
				|  |  |          //下发后修改为使用中
 | 
	
		
			
				|  |  |          plan.setPlanStatus(EduTrainingPlanStatus.USING.getCode());
 | 
	
		
			
				|  |  |          plan.setIssue(1);
 | 
	
		
			
				|  |  | -       this.updatePlanTime(plan,status);
 | 
	
		
			
				|  |  | +        this.updatePlanTime(plan, status);
 | 
	
		
			
				|  |  |          this.updateById(plan);
 | 
	
		
			
				|  |  |          if (ObjectUtil.equal(status, 1)) {
 | 
	
		
			
				|  |  |              //status=1:立即生效  status=0:下周期生效
 | 
	
	
		
			
				|  | @@ -751,7 +757,7 @@ public class CoreEduTrainingPlanServiceImpl extends ServiceImpl<CoreEduTrainingP
 | 
	
		
			
				|  |  |          return collect;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    private List<CoreEduTrainingPlan> buildPlanData(CoreEduTrainingPlan plan, List<CoreEduTrainingPlanToRole> planRoleList, Boolean isPublish,int  status) {
 | 
	
		
			
				|  |  | +    private List<CoreEduTrainingPlan> buildPlanData(CoreEduTrainingPlan plan, List<CoreEduTrainingPlanToRole> planRoleList, Boolean isPublish, int status) {
 | 
	
		
			
				|  |  |          /*if (ObjectUtil.isEmpty(planRoleList)) {
 | 
	
		
			
				|  |  |              //获取执行角色
 | 
	
		
			
				|  |  |              LambdaQueryWrapper<CoreEduTrainingPlanToRole> ros = new LambdaQueryWrapper<>();
 | 
	
	
		
			
				|  | @@ -797,7 +803,7 @@ public class CoreEduTrainingPlanServiceImpl extends ServiceImpl<CoreEduTrainingP
 | 
	
		
			
				|  |  |              coreEduTrainingPlan.setParentId(plan.getId());
 | 
	
		
			
				|  |  |              coreEduTrainingPlan.setCreateTime(new Date());
 | 
	
		
			
				|  |  |              coreEduTrainingPlan.setUpdateTime(new Date());
 | 
	
		
			
				|  |  | -            this.updatePlanTime(coreEduTrainingPlan,status);
 | 
	
		
			
				|  |  | +            this.updatePlanTime(coreEduTrainingPlan, status);
 | 
	
		
			
				|  |  |              list.add(coreEduTrainingPlan);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              if (ObjectUtil.isNotEmpty(planExecOrgList)) {
 |