|
@@ -328,7 +328,7 @@ public class StudentApplyServiceImpl extends ServiceImpl<StudentApplyDao, Studen
|
|
toBeUpdateAgentTimeList.addAll(vo.getAgentTimeList());
|
|
toBeUpdateAgentTimeList.addAll(vo.getAgentTimeList());
|
|
}
|
|
}
|
|
try {
|
|
try {
|
|
- saveStdApply(i, vo, failRecords);
|
|
|
|
|
|
+ saveStdApply(i, vo, userId, failRecords);
|
|
} catch (StatusException e) {
|
|
} catch (StatusException e) {
|
|
failRecords.add(newError(i + 1, " 系统异常"));
|
|
failRecords.add(newError(i + 1, " 系统异常"));
|
|
log.error("导入异常", e);
|
|
log.error("导入异常", e);
|
|
@@ -431,7 +431,8 @@ public class StudentApplyServiceImpl extends ServiceImpl<StudentApplyDao, Studen
|
|
return task;
|
|
return task;
|
|
}
|
|
}
|
|
|
|
|
|
- private List<StudentApplyEntity> saveStdApply(int row, StudentImportVO vo, List<Map<String, Object>> failRecords) {
|
|
|
|
|
|
+ private List<StudentApplyEntity> saveStdApply(int row, StudentImportVO vo, Long userId,
|
|
|
|
+ List<Map<String, Object>> failRecords) {
|
|
List<StudentApplyEntity> ApplyList = new ArrayList<>();
|
|
List<StudentApplyEntity> ApplyList = new ArrayList<>();
|
|
List<AgentAndTimeVO> agentTimeList = vo.getAgentTimeList();
|
|
List<AgentAndTimeVO> agentTimeList = vo.getAgentTimeList();
|
|
for (AgentAndTimeVO agentTime : agentTimeList) {
|
|
for (AgentAndTimeVO agentTime : agentTimeList) {
|
|
@@ -440,6 +441,7 @@ public class StudentApplyServiceImpl extends ServiceImpl<StudentApplyDao, Studen
|
|
entity.setExamSiteId(agentTime.getAgentId());
|
|
entity.setExamSiteId(agentTime.getAgentId());
|
|
entity.setTimePeriodId(agentTime.getTimePeriodId());
|
|
entity.setTimePeriodId(agentTime.getTimePeriodId());
|
|
entity.setCancel(Boolean.FALSE);
|
|
entity.setCancel(Boolean.FALSE);
|
|
|
|
+ entity.setOperateId(userId);
|
|
int haveApplyCount = countApplyFinishForExamSiteAndTimePeriod(agentTime.getAgentId(),
|
|
int haveApplyCount = countApplyFinishForExamSiteAndTimePeriod(agentTime.getAgentId(),
|
|
agentTime.getTimePeriodId());
|
|
agentTime.getTimePeriodId());
|
|
ExamSiteEntity examSite = examSiteService.getById(agentTime.getAgentId());
|
|
ExamSiteEntity examSite = examSiteService.getById(agentTime.getAgentId());
|