|  | @@ -11,7 +11,6 @@ import com.ym.mec.biz.dal.page.StudentAttendanceQueryInfo;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.StudentAttendanceService;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.SysConfigService;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.SysMessageService;
 | 
	
		
			
				|  |  | -import com.ym.mec.common.config.RequestAttributeHystrixConcurrencyStrategy;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.dal.BaseDAO;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.exception.BizException;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.page.PageInfo;
 | 
	
	
		
			
				|  | @@ -25,6 +24,7 @@ import org.slf4j.Logger;
 | 
	
		
			
				|  |  |  import org.slf4j.LoggerFactory;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import org.springframework.stereotype.Service;
 | 
	
		
			
				|  |  | +import org.springframework.transaction.annotation.Isolation;
 | 
	
		
			
				|  |  |  import org.springframework.transaction.annotation.Transactional;
 | 
	
		
			
				|  |  |  import org.springframework.util.CollectionUtils;
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -62,6 +62,8 @@ public class StudentAttendanceServiceImpl extends BaseServiceImpl<Long, StudentA
 | 
	
		
			
				|  |  |  	private SysConfigService sysConfigService;
 | 
	
		
			
				|  |  |  	@Autowired
 | 
	
		
			
				|  |  |  	private TeacherAttendanceDao teacherAttendanceDao;
 | 
	
		
			
				|  |  | +	@Autowired
 | 
	
		
			
				|  |  | +	private StudentDao studentDao;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	@Override
 | 
	
		
			
				|  |  |  	public BaseDAO<Long, StudentAttendance> getDAO() {
 | 
	
	
		
			
				|  | @@ -70,13 +72,14 @@ public class StudentAttendanceServiceImpl extends BaseServiceImpl<Long, StudentA
 | 
	
		
			
				|  |  |  	private static final Logger log = LoggerFactory.getLogger(StudentAttendanceServiceImpl.class);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	@Override
 | 
	
		
			
				|  |  | -	@Transactional(rollbackFor = Exception.class)
 | 
	
		
			
				|  |  | +	@Transactional(rollbackFor = Exception.class, isolation = Isolation.READ_COMMITTED)
 | 
	
		
			
				|  |  |  	public void addStudentAttendances(StudentAttendanceDto studentAttendanceInfos) {
 | 
	
		
			
				|  |  |  		List<StudentAttendance> studentAttendances=studentAttendanceInfos.getStudentAttendances();
 | 
	
		
			
				|  |  |  		SysUser sysUser = sysUserFeignService.queryUserInfo();
 | 
	
		
			
				|  |  |  		if(Objects.isNull(sysUser)){
 | 
	
		
			
				|  |  |  			throw new BizException("请登录");
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | +		studentDao.lockUser(sysUser.getId());
 | 
	
		
			
				|  |  |  		if(CollectionUtils.isEmpty(studentAttendances)){
 | 
	
		
			
				|  |  |  			throw new BizException("无点名信息");
 | 
	
		
			
				|  |  |  		}
 |