Browse Source

modify:

1. 部分接口增加角色校验;
tags/24080901
WendyYang 6 months ago
parent
commit
e56aeead06
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/controller/MhProjectController.java

+ 4
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/controller/MhProjectController.java View File

@@ -10,6 +10,7 @@ import com.ningdatech.log.annotation.WebLog;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;


@@ -61,16 +62,19 @@ public class MhProjectController {


@ApiOperation("初始化信产项目至项目库") @ApiOperation("初始化信产项目至项目库")
@GetMapping("/initProjectLib") @GetMapping("/initProjectLib")
@PreAuthorize("hasAuthority('SUPER_ADMIN')")
public void initMhProjectToProjectLib() { public void initMhProjectToProjectLib() {
declaredRecordManage.initMhProjectToProject(); declaredRecordManage.initMhProjectToProject();
} }


@GetMapping("/importReplaceSystemInfos") @GetMapping("/importReplaceSystemInfos")
@PreAuthorize("hasAuthority('SUPER_ADMIN')")
public void importReplaceSystemInfos(MultipartFile file) { public void importReplaceSystemInfos(MultipartFile file) {
declaredRecordManage.importReplaceSystemInfos(file); declaredRecordManage.importReplaceSystemInfos(file);
} }


@GetMapping("/importProjectFinanceInfos") @GetMapping("/importProjectFinanceInfos")
@PreAuthorize("hasAuthority('SUPER_ADMIN')")
public void importProjectFinanceInfos(MultipartFile file) { public void importProjectFinanceInfos(MultipartFile file) {
declaredRecordManage.importProjectFinanceInfos(file); declaredRecordManage.importProjectFinanceInfos(file);
} }


Loading…
Cancel
Save