Sfoglia il codice sorgente

modify:

1. 部分接口增加角色校验;
tags/24080901
WendyYang 4 mesi fa
parent
commit
e56aeead06
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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 Vedi File

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


Loading…
Annulla
Salva