|
@@ -720,7 +720,7 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
if (Objects.isNull(examTask)) {
|
|
|
throw ExceptionResultEnum.ERROR.exception("未找到命题任务");
|
|
|
}
|
|
|
- String examTaskSign = examTask.getSchoolId() + "-" + examTask.getCourseName() + "-" + examTask.getPaperNumber();
|
|
|
+ String examTaskSign = examTask.getCourseName() + "-" + examTask.getPaperNumber();
|
|
|
String firstPath = zipLocalRootPath + File.separator + examTaskSign;
|
|
|
// List<ExamTaskDetail> examTaskDetailList = examTaskDetailService.list(new QueryWrapper<ExamTaskDetail>().lambda().eq(ExamTaskDetail::getExamTaskId, id));
|
|
|
// if (examTaskDetailList.size() != 1) {
|
|
@@ -818,7 +818,7 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
}
|
|
|
count++;
|
|
|
}
|
|
|
- ZipUtil.zip(zipLocalRootPath, zipFile.getPath(), true);
|
|
|
+ ZipUtil.zip(zipLocalRootPath, zipFile.getPath(), false);
|
|
|
ossUtil.ossUpload(dirNameTmp, zipFile, BinaryUtil.toBase64String(HexUtils.decodeHex(DigestUtils.md5Hex(new FileInputStream(zipFile)))));
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.put(SystemConstant.PATH, dirNameTmp);
|