|  | @@ -843,6 +843,7 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	@Override
 | 
	
		
			
				|  |  | +	@Transactional(rollbackFor = Exception.class)
 | 
	
		
			
				|  |  |  	public void courseScheduleCommplaint(CourseScheduleComplaints courseScheduleComplaints) {
 | 
	
		
			
				|  |  |  		SysUser user = sysUserFeignService.queryUserInfo();
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -851,11 +852,11 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		if(Objects.isNull(courseScheduleComplaints.getCourseScheduleId())){
 | 
	
		
			
				|  |  | -			throw new BizException("请指定需要投诉的课程");
 | 
	
		
			
				|  |  | +			throw new BizException("请指定需要评价的课程");
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		if(StringUtils.isBlank(courseScheduleComplaints.getReason())){
 | 
	
		
			
				|  |  | -			throw new BizException("请说明投诉原因");
 | 
	
		
			
				|  |  | +			throw new BizException("请说明写下您的评价");
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		if(StringUtils.length(courseScheduleComplaints.getReason())>150){
 | 
	
	
		
			
				|  | @@ -866,7 +867,7 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		CourseScheduleComplaints byUserAndCourse = courseScheduleComplaintsDao.findByUserAndCourse(courseScheduleComplaints.getUserId().longValue(), courseScheduleComplaints.getCourseScheduleId());
 | 
	
		
			
				|  |  |  		if(byUserAndCourse!=null){
 | 
	
		
			
				|  |  | -			throw new BizException("您已经对该课程进行过申诉操作!");
 | 
	
		
			
				|  |  | +			throw new BizException("您已经对该课程做出了评价!");
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		CourseScheduleDto courseSchedules = courseScheduleDao.getCourseSchedules(courseScheduleComplaints.getCourseScheduleId());
 | 
	
	
		
			
				|  | @@ -886,7 +887,7 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
 | 
	
		
			
				|  |  |  		Set<Integer> roleIds = new HashSet<>(1);
 | 
	
		
			
				|  |  |  		roleIds.add(SysUserRole.EDUCATIONAL_TEACHER);
 | 
	
		
			
				|  |  |  		Map<String,Long> memo = new HashMap<>(1);
 | 
	
		
			
				|  |  | -		memo.put("courseScheduleComplaintsId",byUserAndCourse.getId());
 | 
	
		
			
				|  |  | +		memo.put("courseScheduleComplaintsId",courseScheduleComplaints.getId());
 | 
	
		
			
				|  |  |  		sysMessageService.batchSeoMessage(musicGroupDao.queryUserIdByRoleId(roleIds),MessageTypeEnum.BACKSTAGE_STUDENT_APPEAL, JSONObject.toJSONString(memo),courseSchedule.getName(),user.getUsername());
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 |