From e56aeead06c53a71687d6e2d437e45052e1ad400 Mon Sep 17 00:00:00 2001 From: WendyYang Date: Fri, 12 Jul 2024 09:43:56 +0800 Subject: [PATCH] =?UTF-8?q?modify:=201.=20=E9=83=A8=E5=88=86=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=A2=9E=E5=8A=A0=E8=A7=92=E8=89=B2=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hz/pm/api/projectlib/controller/MhProjectController.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/controller/MhProjectController.java b/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/controller/MhProjectController.java index 13ce188..4b10aa5 100644 --- a/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/controller/MhProjectController.java +++ b/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/controller/MhProjectController.java @@ -10,6 +10,7 @@ import com.ningdatech.log.annotation.WebLog; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; +import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -61,16 +62,19 @@ public class MhProjectController { @ApiOperation("初始化信产项目至项目库") @GetMapping("/initProjectLib") + @PreAuthorize("hasAuthority('SUPER_ADMIN')") public void initMhProjectToProjectLib() { declaredRecordManage.initMhProjectToProject(); } @GetMapping("/importReplaceSystemInfos") + @PreAuthorize("hasAuthority('SUPER_ADMIN')") public void importReplaceSystemInfos(MultipartFile file) { declaredRecordManage.importReplaceSystemInfos(file); } @GetMapping("/importProjectFinanceInfos") + @PreAuthorize("hasAuthority('SUPER_ADMIN')") public void importProjectFinanceInfos(MultipartFile file) { declaredRecordManage.importProjectFinanceInfos(file); }