|
@@ -1,6 +1,8 @@
|
|
|
package com.keao.edu.user.service.impl;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.keao.edu.auth.api.client.SysUserFeignService;
|
|
|
+import com.keao.edu.auth.api.entity.SysUser;
|
|
|
import com.keao.edu.common.dal.BaseDAO;
|
|
|
import com.keao.edu.common.enums.MessageTypeEnum;
|
|
|
import com.keao.edu.common.exception.BizException;
|
|
@@ -16,6 +18,7 @@ import com.keao.edu.user.dao.ExaminationBasicDao;
|
|
|
import com.keao.edu.user.dao.StudentExamResultDao;
|
|
|
import com.keao.edu.user.dto.ExaminationBasicDto;
|
|
|
import com.keao.edu.user.dto.RecordNotify;
|
|
|
+import com.keao.edu.user.dto.RoomStudentListDto;
|
|
|
import com.keao.edu.user.dto.StudentExamResultStatisticsDto;
|
|
|
import com.keao.edu.user.entity.ExaminationBasic;
|
|
|
import com.keao.edu.user.entity.Organization;
|
|
@@ -50,6 +53,8 @@ public class StudentExamResultServiceImpl extends BaseServiceImpl<Long, StudentE
|
|
|
private OrganizationService organizationService;
|
|
|
@Autowired
|
|
|
private SysMessageService sysMessageService;
|
|
|
+ @Autowired
|
|
|
+ private SysUserFeignService sysUserFeignService;
|
|
|
|
|
|
private final static Logger logger = LoggerFactory.getLogger(StudentExamResultServiceImpl.class);
|
|
|
|
|
@@ -206,4 +211,22 @@ public class StudentExamResultServiceImpl extends BaseServiceImpl<Long, StudentE
|
|
|
public void updateSessionId(Long examRegistrationId, String sessionId) {
|
|
|
studentExamResultDao.updateSessionId(examRegistrationId,sessionId);
|
|
|
}
|
|
|
+
|
|
|
+ /*@Override
|
|
|
+ public void shieldUserId(Long roomId) {
|
|
|
+ List<RoomStudentListDto> roomStudentListDtos = examRoomStudentRelationDao.queryStudentList(roomId);
|
|
|
+ if(roomStudentListDtos != null && roomStudentListDtos.size() > 0){
|
|
|
+ RoomStudentListDto roomStudentListDto = roomStudentListDtos.get(0);
|
|
|
+ SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
+ String shieldUserId = roomStudentListDto.getShieldUserId();
|
|
|
+ if(StringUtils.isNotEmpty(shieldUserId)){
|
|
|
+ if(!shieldUserId.contains(sysUser.getId().toString())) {
|
|
|
+ shieldUserId += "," + sysUser.getId();
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ shieldUserId = sysUser.getId().toString();
|
|
|
+ }
|
|
|
+ examRoomStudentRelationDao.updateShield();
|
|
|
+ }
|
|
|
+ }*/
|
|
|
}
|