Commit 942511e9 authored by 刘基明's avatar 刘基明

图片审核添加待审核类型

parent f93da906
...@@ -53,7 +53,7 @@ public class CallBackController { ...@@ -53,7 +53,7 @@ public class CallBackController {
type=FileChechStatusEnum.REVIEW; type=FileChechStatusEnum.REVIEW;
} }
} }
fileManager.updateCheckResult(fileKey, type, taskId, JsonUtil.toJson(scanResult)); fileManager.updateCheckResult(fileKey, type, JsonUtil.toJson(scanResult));
return "success"; return "success";
} }
......
...@@ -74,14 +74,13 @@ public class FileManager { ...@@ -74,14 +74,13 @@ public class FileManager {
.collect(Collectors.toMap(FileRecordEntity::getFileId, FileRecordEntity::getUrl)); .collect(Collectors.toMap(FileRecordEntity::getFileId, FileRecordEntity::getUrl));
} }
public void updateCheckResult(String fileKey, FileChechStatusEnum type, String taskId, String resultLog) { public void updateCheckResult(String fileKey, FileChechStatusEnum type, String resultLog) {
FileRecordEntity fileRecordEntity = ossFileService.queryByOssKey(fileKey); FileRecordEntity fileRecordEntity = ossFileService.queryByOssKey(fileKey);
if (fileRecordEntity == null) { if (fileRecordEntity == null) {
throw new BizException("图片未找到:" + fileKey); throw new BizException("图片未找到:" + fileKey);
} }
fileRecordEntity.setCheckStatus(type.getCode()); fileRecordEntity.setCheckStatus(type.getCode());
fileRecordEntity.setCheckTaskId(taskId);
fileRecordEntity.setCheckResultLog(resultLog); fileRecordEntity.setCheckResultLog(resultLog);
ossFileService.update(fileRecordEntity); ossFileService.update(fileRecordEntity);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment