|
@@ -18,7 +18,6 @@ import com.qmth.themis.common.contanst.Constants;
|
|
|
import com.qmth.themis.common.exception.BusinessException;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
-import org.springframework.util.Base64Utils;
|
|
|
import org.springframework.util.LinkedMultiValueMap;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -142,12 +141,8 @@ public class TempleteLogicServiceImpl implements TempleteLogicService {
|
|
|
}
|
|
|
teExamStudent = gson.fromJson(gson.toJson(examStudentImportDto), TEExamStudent.class);
|
|
|
teExamStudent.setExamId(examId);
|
|
|
- teExamStudent.setExamActivityId(teExamActivity.getId());
|
|
|
teExamStudent.setStudentId(teStudent.getId());
|
|
|
teExamStudent.setCreateId(createId);
|
|
|
- teExamStudent.setCourseCode(examStudentImportDto.getCourseCode());
|
|
|
- teExamStudent.setCourseName(examStudentImportDto.getCourseName());
|
|
|
- teExamStudent.setAlreadyExamCount(0);
|
|
|
} else {
|
|
|
teExamStudent.setUpdateId(createId);
|
|
|
teExamStudent.setName(examStudentImportDto.getName());
|
|
@@ -155,11 +150,11 @@ public class TempleteLogicServiceImpl implements TempleteLogicService {
|
|
|
teExamStudent.setClassNo(examStudentImportDto.getClassNo());
|
|
|
teExamStudent.setRoomCode(examStudentImportDto.getRoomCode());
|
|
|
teExamStudent.setRoomName(examStudentImportDto.getRoomName());
|
|
|
- teExamStudent.setCourseCode(examStudentImportDto.getCourseCode());
|
|
|
- teExamStudent.setCourseName(examStudentImportDto.getCourseName());
|
|
|
- teExamStudent.setExamActivityId(teExamActivity.getId());
|
|
|
- teExamStudent.setAlreadyExamCount(0);
|
|
|
}
|
|
|
+ teExamStudent.setCourseCode(examStudentImportDto.getCourseCode());
|
|
|
+ teExamStudent.setCourseName(examStudentImportDto.getCourseName());
|
|
|
+ teExamStudent.setAlreadyExamCount(0);
|
|
|
+ teExamStudent.setExamActivityId(teExamActivity.getId());
|
|
|
if (Objects.nonNull(examStudentImportDto.getPassword()) && !Objects.equals(examStudentImportDto.getPassword().trim(), "")) {
|
|
|
teStudent.setPassword(Base64Util.encode(examStudentImportDto.getPassword().trim().getBytes(SystemConstant.CHARSET_NAME)));
|
|
|
} else {
|
|
@@ -167,6 +162,7 @@ public class TempleteLogicServiceImpl implements TempleteLogicService {
|
|
|
teStudent.setPassword(SystemConstant.DEFAULT_PASSWORD);
|
|
|
}
|
|
|
}
|
|
|
+ teStudent.setMobileNumber(examStudentImportDto.getMobileNumber());
|
|
|
teStudent.setName(examStudentImportDto.getName());
|
|
|
teStudentList.add(teStudent);
|
|
|
|