|
@@ -1,5 +1,17 @@
|
|
package com.qmth.themis.business.service.impl;
|
|
package com.qmth.themis.business.service.impl;
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
|
|
+
|
|
|
|
+import javax.annotation.Resource;
|
|
|
|
+
|
|
|
|
+import org.springframework.cache.annotation.CacheEvict;
|
|
|
|
+import org.springframework.cache.annotation.CachePut;
|
|
|
|
+import org.springframework.cache.annotation.Cacheable;
|
|
|
|
+import org.springframework.scheduling.annotation.Async;
|
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
+
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.qmth.themis.business.cache.bean.ExamStudentCacheBean;
|
|
import com.qmth.themis.business.cache.bean.ExamStudentCacheBean;
|
|
@@ -8,15 +20,6 @@ import com.qmth.themis.business.dto.response.RoomCodeQueryDto;
|
|
import com.qmth.themis.business.dto.response.TEExamStudentDto;
|
|
import com.qmth.themis.business.dto.response.TEExamStudentDto;
|
|
import com.qmth.themis.business.entity.TEExamStudent;
|
|
import com.qmth.themis.business.entity.TEExamStudent;
|
|
import com.qmth.themis.business.service.TEExamStudentService;
|
|
import com.qmth.themis.business.service.TEExamStudentService;
|
|
-import org.springframework.cache.annotation.CacheEvict;
|
|
|
|
-import org.springframework.cache.annotation.CachePut;
|
|
|
|
-import org.springframework.cache.annotation.Cacheable;
|
|
|
|
-import org.springframework.scheduling.annotation.Async;
|
|
|
|
-import org.springframework.stereotype.Service;
|
|
|
|
-
|
|
|
|
-import javax.annotation.Resource;
|
|
|
|
-import java.util.List;
|
|
|
|
-import java.util.Map;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* @Description: 考生库 服务实现类
|
|
* @Description: 考生库 服务实现类
|
|
@@ -119,7 +122,6 @@ public class TEExamStudentServiceImpl extends ServiceImpl<TEExamStudentMapper, T
|
|
ret.setRoomName(es.getRoomName());
|
|
ret.setRoomName(es.getRoomName());
|
|
ret.setAlreadyExamCount(es.getAlreadyExamCount());
|
|
ret.setAlreadyExamCount(es.getAlreadyExamCount());
|
|
ret.setCurrentRecordId(es.getCurrentRecordId());
|
|
ret.setCurrentRecordId(es.getCurrentRecordId());
|
|
- ret.setCurrentSerialNumber(null);
|
|
|
|
ret.setIdentity(es.getIdentity());
|
|
ret.setIdentity(es.getIdentity());
|
|
ret.setName(es.getName());
|
|
ret.setName(es.getName());
|
|
return ret;
|
|
return ret;
|
|
@@ -130,4 +132,18 @@ public class TEExamStudentServiceImpl extends ServiceImpl<TEExamStudentMapper, T
|
|
String roomCode, String courseCode, String grade, Integer enable, String classNo, Integer hasPhoto) {
|
|
String roomCode, String courseCode, String grade, Integer enable, String classNo, Integer hasPhoto) {
|
|
return teExamStudentMapper.examStudentList(examId, activityId, identity, name, roomCode, courseCode, grade, enable, classNo,hasPhoto);
|
|
return teExamStudentMapper.examStudentList(examId, activityId, identity, name, roomCode, courseCode, grade, enable, classNo,hasPhoto);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Transactional
|
|
|
|
+ @Override
|
|
|
|
+ public void updateByMqMsg(Map<String, Object> param) {
|
|
|
|
+ Long examStudentId=(Long)param.get("examStudentId");
|
|
|
|
+ Integer alreadyExamCount=(Integer)param.get("alreadyExamCount");
|
|
|
|
+ Long currentRecordId=(Long)param.get("currentRecordId");
|
|
|
|
+ if(alreadyExamCount!=null) {
|
|
|
|
+ teExamStudentMapper.updateAlreadyExamCount(examStudentId,alreadyExamCount);
|
|
|
|
+ }
|
|
|
|
+ if(currentRecordId!=null) {
|
|
|
|
+ teExamStudentMapper.updateCurrentRecordId(examStudentId,currentRecordId);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|