diff --git a/hyp-admin/src/main/java/com/hyp/web/controller/manager/FileRelationManager.java b/hyp-admin/src/main/java/com/hyp/web/controller/manager/FileRelationManager.java index 1738757..d9d25d6 100644 --- a/hyp-admin/src/main/java/com/hyp/web/controller/manager/FileRelationManager.java +++ b/hyp-admin/src/main/java/com/hyp/web/controller/manager/FileRelationManager.java @@ -79,6 +79,20 @@ public class FileRelationManager { } + /** + * + * 材料审核 + * @param fileId + * @param fileState + * @return boolean + */ + public boolean pass( String fileId, Integer fileState){ + return fileRelationService.lambdaUpdate() + .eq(RewFileRelation::getFileId,fileId) + .set(RewFileRelation::getFileState,fileState) + .update(); + } + /** * * 验证文件是否审查 diff --git a/hyp-admin/src/main/java/com/hyp/web/controller/reward/FileRelationController.java b/hyp-admin/src/main/java/com/hyp/web/controller/reward/FileRelationController.java index 6798d7f..92876e4 100644 --- a/hyp-admin/src/main/java/com/hyp/web/controller/reward/FileRelationController.java +++ b/hyp-admin/src/main/java/com/hyp/web/controller/reward/FileRelationController.java @@ -140,6 +140,13 @@ public class FileRelationController extends BaseController { return toAjax(fileRelationManager.filePass(applyId,fileCode,fileState)); } + @ApiOperation("材料审核") + @GetMapping("/pass") + public AjaxResult pass(@RequestParam String fileId, + @RequestParam Integer fileState){ + return toAjax(fileRelationManager.pass(fileId,fileState)); + } + @ApiOperation("材料校验") @GetMapping("/checkFile/{applyId}")