From c5f2ad6a0471de5c66ec227082f6e7ccfd533d0a Mon Sep 17 00:00:00 2001 From: wangxy <1356089412@qq.com> Date: Fri, 19 Apr 2024 08:56:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=8F=82=E6=95=B0=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/manager/FileRelationManager.java | 14 ++++++++++++++ .../controller/reward/FileRelationController.java | 7 +++++++ 2 files changed, 21 insertions(+) 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}")