|
@@ -893,21 +893,6 @@ public class ExamTaskServiceImpl extends ServiceImpl<ExamTaskMapper, ExamTask> i
|
|
examTaskDetail.setUnexposedPaperType(examTaskDetail.getPaperType());
|
|
examTaskDetail.setUnexposedPaperType(examTaskDetail.getPaperType());
|
|
examTaskDetail.setExamTaskId(examTask.getId());
|
|
examTaskDetail.setExamTaskId(examTask.getId());
|
|
examTaskDetail.insertInfo(sysUser.getId());
|
|
examTaskDetail.insertInfo(sysUser.getId());
|
|
- List<PaperInfoVo> filePathVoList = examTaskDetail.getPaperInfoVoList();
|
|
|
|
- for (PaperInfoVo paperInfoVo : filePathVoList) {
|
|
|
|
- BasicAttachment basicAttachment = basicAttachmentService.getById(paperInfoVo.getAttachmentId());
|
|
|
|
- if (basicAttachment != null) {
|
|
|
|
- FilePathVo filePathVo = JSON.parseObject(basicAttachment.getPath(), FilePathVo.class);
|
|
|
|
- InputStream inputStream = fileUploadService.downloadFile(filePathVo.getPath(), filePathVo.getUploadType(), filePathVo.getType());
|
|
|
|
- List<ConvertJpgStorage> convertJpgStorageList = htmlToJpgUtil.convertPdfToJpg(Long.valueOf(paperInfoVo.getAttachmentId()), inputStream, sysUser.getId());
|
|
|
|
- if (convertJpgStorageList.size() > 0) {
|
|
|
|
- paperInfoVo.setJpgAttachmentId(JSON.toJSONString(convertJpgStorageList));
|
|
|
|
- } else {
|
|
|
|
- paperInfoVo.setJpgAttachmentId(null);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- examTaskDetail.setPaperAttachmentIds(JSON.toJSONString(filePathVoList));
|
|
|
|
examTaskDetailService.save(examTaskDetail);
|
|
examTaskDetailService.save(examTaskDetail);
|
|
|
|
|
|
String paperAttachmentIds = examTaskDetail.getPaperAttachmentIds();
|
|
String paperAttachmentIds = examTaskDetail.getPaperAttachmentIds();
|
|
@@ -1296,19 +1281,6 @@ public class ExamTaskServiceImpl extends ServiceImpl<ExamTaskMapper, ExamTask> i
|
|
examTaskDetail.setUnexposedPaperType(examTaskDetail.getPaperType());
|
|
examTaskDetail.setUnexposedPaperType(examTaskDetail.getPaperType());
|
|
examTaskDetail.setExamTaskId(examTask.getId());
|
|
examTaskDetail.setExamTaskId(examTask.getId());
|
|
examTaskDetail.insertInfo(sysUser.getId());
|
|
examTaskDetail.insertInfo(sysUser.getId());
|
|
- List<PaperInfoVo> filePathVoList = examTaskDetail.getPaperInfoVoList();
|
|
|
|
- for (PaperInfoVo paperInfoVo : filePathVoList) {
|
|
|
|
- BasicAttachment basicAttachment = basicAttachmentService.getById(paperInfoVo.getAttachmentId());
|
|
|
|
- FilePathVo filePathVo = JSON.parseObject(basicAttachment.getPath(), FilePathVo.class);
|
|
|
|
- InputStream inputStream = fileUploadService.downloadFile(filePathVo.getPath(), filePathVo.getUploadType(), filePathVo.getType());
|
|
|
|
- List<ConvertJpgStorage> convertJpgStorageList = htmlToJpgUtil.convertPdfToJpg(Long.valueOf(paperInfoVo.getAttachmentId()), inputStream, sysUser.getId());
|
|
|
|
- if (convertJpgStorageList.size() > 0) {
|
|
|
|
- paperInfoVo.setJpgAttachmentId(JSON.toJSONString(convertJpgStorageList));
|
|
|
|
- } else {
|
|
|
|
- paperInfoVo.setJpgAttachmentId(null);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- examTaskDetail.setPaperAttachmentIds(JSON.toJSONString(filePathVoList));
|
|
|
|
examTaskDetailService.save(examTaskDetail);
|
|
examTaskDetailService.save(examTaskDetail);
|
|
|
|
|
|
String paperAttachmentIds = examTaskDetail.getPaperAttachmentIds();
|
|
String paperAttachmentIds = examTaskDetail.getPaperAttachmentIds();
|