浏览代码

modify:

1. 部分接口增加角色校验;
tags/24080901
WendyYang 4 个月前
父节点
当前提交
e56aeead06
共有 1 个文件被更改,包括 4 次插入0 次删除
  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 查看文件

@@ -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);
}


正在加载...
取消
保存