|  | @@ -179,6 +179,12 @@ public class CoreEduTrainingPlanServiceImpl extends ServiceImpl<CoreEduTrainingP
 | 
	
		
			
				|  |  |          if (ObjectUtil.equal(request.getPlanCycle(), 0) && ObjectUtil.hasEmpty(request.getStartDate(), request.getEndDate())) {
 | 
	
		
			
				|  |  |              throw new RuntimeException("当计划为无周期的时候,请填入开始时间和结束时间!");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +        Long count = coreEduTrainingPlanMapper.selectCount(new LambdaQueryWrapper<CoreEduTrainingPlan>()
 | 
	
		
			
				|  |  | +                .eq(CoreEduTrainingPlan::getPlanName, request.getPlanName())
 | 
	
		
			
				|  |  | +                .eq(CoreEduTrainingPlan::getDeleted, 0));
 | 
	
		
			
				|  |  | +        if (null != count && count > 0) {
 | 
	
		
			
				|  |  | +            throw new RuntimeException("计划名称已存在!");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          CoreEduTrainingPlan plan = new CoreEduTrainingPlan();
 | 
	
		
			
				|  |  |          BeanUtils.copyProperties(request, plan);
 | 
	
		
			
				|  |  |          plan.setId(IdWorker.getId());
 |