|
@@ -1,5 +1,6 @@
|
|
|
package com.qmth.distributed.print.business.service.impl;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
@@ -939,6 +940,20 @@ public class ExamTaskServiceImpl extends ServiceImpl<ExamTaskMapper, ExamTask> i
|
|
|
map.computeIfAbsent(SystemConstant.APPROVE_REMARK, v -> sysUser.getRealName() + "(" + remark + ")" + FlowApprovePassEnum.CANCEL.getTitle());
|
|
|
map.computeIfAbsent(SystemConstant.APPROVE_SETUP, v -> FlowApproveSetupEnum.SUBMIT.getSetup());
|
|
|
activitiService.taskApprove(map);
|
|
|
+
|
|
|
+ // 清除cardId
|
|
|
+ ExamTaskDetail examTaskDetail = examTaskDetailService.getByExamTaskId(examTask.getId());
|
|
|
+ String paperAttachmentIds = examTaskDetail.getPaperAttachmentIds();
|
|
|
+ if (StringUtils.isNotBlank(paperAttachmentIds)) {
|
|
|
+ List<JSONObject> objects = JSON.parseArray(paperAttachmentIds, JSONObject.class);
|
|
|
+ for (JSONObject object : objects) {
|
|
|
+ object.put("cardId", "");
|
|
|
+ object.put("cardType", "");
|
|
|
+ object.put("cardTitle", "");
|
|
|
+ }
|
|
|
+ examTaskDetail.setPaperAttachmentIds(JSON.toJSONString(objects));
|
|
|
+ examTaskDetailService.updateById(examTaskDetail);
|
|
|
+ }
|
|
|
return true;
|
|
|
}
|
|
|
|
|
@@ -1546,7 +1561,7 @@ public class ExamTaskServiceImpl extends ServiceImpl<ExamTaskMapper, ExamTask> i
|
|
|
throw ExceptionResultEnum.ERROR.exception("未查到考试信息");
|
|
|
}
|
|
|
|
|
|
- BasicCourse basicCourse = basicCourseService.findByCourseCode(examTask.getCourseCode(),schoolId);
|
|
|
+ BasicCourse basicCourse = basicCourseService.findByCourseCode(examTask.getCourseCode(), schoolId);
|
|
|
|
|
|
if (ExamModelEnum.MODEL1.equals(basicExam.getExamModel()) || ExamModelEnum.MODEL2.equals(basicExam.getExamModel())) {
|
|
|
// 创建印刷计划
|
|
@@ -1728,7 +1743,7 @@ public class ExamTaskServiceImpl extends ServiceImpl<ExamTaskMapper, ExamTask> i
|
|
|
SysOrg schoolOrg = schoolOrgList.get(0);
|
|
|
List<SysOrg> collegeList = orgList.stream().filter(e -> Objects.equals(schoolOrg.getId(), e.getParentId())).collect(Collectors.toList());
|
|
|
SysOrg college = new SysOrg();
|
|
|
- if (collegeList.size() == 1){
|
|
|
+ if (collegeList.size() == 1) {
|
|
|
college = collegeList.get(0);
|
|
|
}
|
|
|
|
|
@@ -1754,7 +1769,7 @@ public class ExamTaskServiceImpl extends ServiceImpl<ExamTaskMapper, ExamTask> i
|
|
|
// ---- 组装Dto
|
|
|
ExamTaskApprovalFormDto examTaskApprovalFormDto = new ExamTaskApprovalFormDto();
|
|
|
BasicInfo basicInfo = new BasicInfo();
|
|
|
- if (Objects.nonNull(college)){
|
|
|
+ if (Objects.nonNull(college)) {
|
|
|
basicInfo.setCollegeId(college.getId());
|
|
|
basicInfo.setCollegeName(college.getName());
|
|
|
}
|
|
@@ -2046,7 +2061,7 @@ public class ExamTaskServiceImpl extends ServiceImpl<ExamTaskMapper, ExamTask> i
|
|
|
throw ExceptionResultEnum.ERROR.exception("异常:考场对应多个考点");
|
|
|
}
|
|
|
String examPlace = null;
|
|
|
- if (examPlaceList.size() > 0){
|
|
|
+ if (examPlaceList.size() > 0) {
|
|
|
examPlace = examPlaceList.get(0);
|
|
|
}
|
|
|
|
|
@@ -2085,7 +2100,7 @@ public class ExamTaskServiceImpl extends ServiceImpl<ExamTaskMapper, ExamTask> i
|
|
|
|
|
|
ExamTaskExamStudentImportResult examTaskExamStudentImportResult = new ExamTaskExamStudentImportResult();
|
|
|
examTaskExamStudentImportResult.setExamRoom(examRoom);
|
|
|
- if (SystemConstant.strNotNull(examPlace)){
|
|
|
+ if (SystemConstant.strNotNull(examPlace)) {
|
|
|
examTaskExamStudentImportResult.setExamPlace(examPlace);
|
|
|
}
|
|
|
examTaskExamStudentImportResult.setExamTaskStudentObjectResultList(examTaskStudentObjectResultList);
|