|  | @@ -156,10 +156,11 @@ public class ExamTeacherSalaryServiceImpl extends BaseServiceImpl<Long, ExamTeac
 | 
	
		
			
				|  |  |  	public void deleteExamTeacherSalary(Long examTeacherSalaryId) {
 | 
	
		
			
				|  |  |  		ExamTeacherSalary examTeacherSalary = examTeacherSalaryDao.get(examTeacherSalaryId);
 | 
	
		
			
				|  |  |  		if(Objects.isNull(examTeacherSalary)){
 | 
	
		
			
				|  |  | -			throw new BizException("教室分润设置不能存在");
 | 
	
		
			
				|  |  | +			throw new BizException("教师分润设置不能存在");
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | -		if(examTeacherSalary.getTotalInvigilationNum()>0){
 | 
	
		
			
				|  |  | -			throw new BizException("该教室已被分配到考场");
 | 
	
		
			
				|  |  | +		int teacherRooms = examRoomDao.countTeacherRooms(examTeacherSalary.getExaminationBasicId(), examTeacherSalary.getTeacherId());
 | 
	
		
			
				|  |  | +		if(teacherRooms>0){
 | 
	
		
			
				|  |  | +			throw new BizException("该教师已被分配到考场");
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  		examTeacherSalaryDao.delete(examTeacherSalaryId);
 | 
	
		
			
				|  |  |  	}
 |