|
@@ -315,7 +315,8 @@ public class RoomServiceImpl implements RoomService {
|
|
|
if(!aBoolean){
|
|
|
RoleEnum roleEnum = RoleEnum.getEnumByValue(roomMember.getRole());
|
|
|
if(roleEnum == RoleTeacher && StringUtils.isNotEmpty(deviceNum)){
|
|
|
- signInSuccess(roomMember,deviceNum);
|
|
|
+ teacherAttendanceService.updateDeviceNum(Integer.parseInt(roomId.substring(1)),userId,deviceNum,null);
|
|
|
+// signInSuccess(roomMember,deviceNum);
|
|
|
}
|
|
|
return;
|
|
|
}
|
|
@@ -433,7 +434,7 @@ public class RoomServiceImpl implements RoomService {
|
|
|
return roomMember;
|
|
|
}
|
|
|
|
|
|
- @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class,isolation = Isolation.SERIALIZABLE)
|
|
|
+ @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class,isolation = Isolation.READ_COMMITTED)
|
|
|
@Override
|
|
|
public void leaveRoomSuccess(String roomId,String userId,String deviceNum) throws Exception {
|
|
|
log.info("leaveRoomSuccess: roomId={}, userId={},deviceNum={}", roomId,userId,deviceNum);
|
|
@@ -456,7 +457,8 @@ public class RoomServiceImpl implements RoomService {
|
|
|
if (StringUtils.isNotEmpty(deviceNum)){
|
|
|
//如果设备号不为空,更新设备号
|
|
|
if(roleEnum == RoleTeacher){
|
|
|
- teacherAttendanceService.addTeacherAttendanceSignOut(firstCourseId.longValue(),parseInt,deviceNum);
|
|
|
+ teacherAttendanceService.updateDeviceNum(firstCourseId,userId,null,deviceNum);
|
|
|
+// teacherAttendanceService.addTeacherAttendanceSignOut(firstCourseId.longValue(),parseInt,deviceNum);
|
|
|
}
|
|
|
}
|
|
|
return;
|