From 059a17ed08ef946e921f538dce08bd7258a11fb3 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: Wed, 02 Apr 2025 15:44:44 +0800
Subject: [PATCH] 增加专家导出
---
expert-admin/src/main/java/com/gkhy/web/controller/bussiness/ProjectManagementController.java | 60 ++++++++++++++++++++++++++++++++++++++++++++++--------------
1 files changed, 46 insertions(+), 14 deletions(-)
diff --git a/expert-admin/src/main/java/com/gkhy/web/controller/bussiness/ProjectManagementController.java b/expert-admin/src/main/java/com/gkhy/web/controller/bussiness/ProjectManagementController.java
index bd5341e..1505552 100644
--- a/expert-admin/src/main/java/com/gkhy/web/controller/bussiness/ProjectManagementController.java
+++ b/expert-admin/src/main/java/com/gkhy/web/controller/bussiness/ProjectManagementController.java
@@ -16,7 +16,6 @@
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@@ -40,7 +39,7 @@
* 查询项目管理列表
*/
@ApiOperation(value = "查询项目管理列表(分页)")
- @PreAuthorize("@ss.hasPermi('system:management:list')")
+ //@PreAuthorize("@ss.hasPermi('system:management:list')")
@GetMapping("/list")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"),
@@ -54,10 +53,20 @@
}
+ @ApiOperation(value = "导出专家数据")
+ //@PreAuthorize("@ss.hasPermi('system:management:list')")
+ @GetMapping("/selectProjectData")
+ public R<List<ProjectDataResp>> selectProjectData(ProjectManagement projectManagement)
+ {
+ return R.ok(projectManagementService.selectProjectData(projectManagement));
+ }
+
+
+
/**
* 获取项目管理详细信息
*/
- @PreAuthorize("@ss.hasPermi('system:management:query')")
+ // @PreAuthorize("@ss.hasPermi('system:management:query')")
@GetMapping(value = "/{id}")
@ApiOperation(value = "获取项目管理详细信息")
@ApiImplicitParams({
@@ -71,7 +80,7 @@
/**
* 新增项目管理
*/
- @PreAuthorize("@ss.hasPermi('system:management:add')")
+ // @PreAuthorize("@ss.hasPermi('system:management:add')")
@ApiOperation(value = "新增编辑项目管理")
@PostMapping("/saveProject")
@RepeatSubmit
@@ -83,7 +92,7 @@
/**
* 修改项目管理
*/
- @PreAuthorize("@ss.hasPermi('system:management:edit')")
+ //@PreAuthorize("@ss.hasPermi('system:management:edit')")
@ApiOperation(value = "项目专家选取保存-修改")
@PostMapping("/projectExpert")
@RepeatSubmit
@@ -93,7 +102,7 @@
return R.ok();
}
- @PreAuthorize("@ss.hasPermi('system:management:info')")
+ //@PreAuthorize("@ss.hasPermi('system:management:info')")
@ApiOperation(value = "获取项目专家审批用(获取项目信息和专家数据)")
@GetMapping("/projectExpertCheckInfo")
@ApiImplicitParams({
@@ -104,7 +113,7 @@
return R.ok(projectManagementService.projectExpertCheckInfo(id));
}
- @PreAuthorize("@ss.hasPermi('system:management:edit')")
+ //@PreAuthorize("@ss.hasPermi('system:management:edit')")
@ApiOperation(value = "项目专家审批")
@PostMapping("/projectCheck")
@RepeatSubmit
@@ -114,7 +123,7 @@
return R.ok();
}
- @PreAuthorize("@ss.hasPermi('system:management:edit')")
+ //@PreAuthorize("@ss.hasPermi('system:management:edit')")
@ApiOperation(value = "项目归档")
@PostMapping("/projectArchive")
@RepeatSubmit
@@ -127,7 +136,7 @@
/**
* 删除项目管理
*/
- @PreAuthorize("@ss.hasPermi('system:management:remove')")
+ //@PreAuthorize("@ss.hasPermi('system:management:remove')")
@DeleteMapping("/{ids}")
@ApiOperation(value = "删除项目管理")
@RepeatSubmit
@@ -141,7 +150,7 @@
* 事后考评列表
*/
@ApiOperation(value = "事后考评——事后考评(分页)")
- @PreAuthorize("@ss.hasPermi('system:management:list')")
+ //@PreAuthorize("@ss.hasPermi('system:management:list')")
@GetMapping("/projectExpertList")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"),
@@ -155,7 +164,7 @@
}
@ApiOperation(value = "事后考评——项目专家考评列表(分页)")
- @PreAuthorize("@ss.hasPermi('system:management:list')")
+ //@PreAuthorize("@ss.hasPermi('system:management:list')")
@GetMapping("/projectExpertEvaluationList")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"),
@@ -169,7 +178,7 @@
return getDataTable(projectExpertEvaluationResps);
}
- @PreAuthorize("@ss.hasPermi('system:management:edit')")
+ //@PreAuthorize("@ss.hasPermi('system:management:edit')")
@ApiOperation(value = "事后考评——项目专家考评")
@PostMapping("/ProjectExpertDetailSave")
@RepeatSubmit
@@ -180,7 +189,7 @@
}
@ApiOperation(value = "专家考评记录——专家考评记录列表(分页)")
- @PreAuthorize("@ss.hasPermi('system:management:list')")
+ //@PreAuthorize("@ss.hasPermi('system:management:list')")
@GetMapping("/projectExpertEvaList")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"),
@@ -194,7 +203,7 @@
}
@ApiOperation(value = "专家考评记录——专家考评记明细")
- @PreAuthorize("@ss.hasPermi('system:management:list')")
+ //@PreAuthorize("@ss.hasPermi('system:management:list')")
@GetMapping("/selectProjectExpertDetailList")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", name = "projectExpertId", dataType = "long", required = true, value = "项目专家id")
@@ -203,6 +212,18 @@
{
return R.ok(projectManagementService.selectProjectExpertDetailList(projectExpertId));
}
+
+ @ApiOperation(value = "专家考评记录——专家考评详情")
+ //@PreAuthorize("@ss.hasPermi('system:management:list')")
+ @GetMapping("/selectProjectExpertDetail")
+ @ApiImplicitParams({
+ @ApiImplicitParam(paramType = "query", name = "projectExpertId", dataType = "long", required = true, value = "项目专家id")
+ })
+ public R<ProjectDetailResp> selectProjectExpertDetail(@RequestParam("projectExpertId") Long projectExpertId)
+ {
+ return R.ok(projectManagementService.selectProjectExpertDetail(projectExpertId));
+ }
+
@GetMapping("/selectProjectFileList")
@ApiImplicitParams({
@@ -220,4 +241,15 @@
return R.ok(projectManagementService.getProjectNum());
}
+ @ApiOperation(value = "项目管理----导出专家报销")
+ //@PreAuthorize("@ss.hasPermi('system:management:list')")
+ @GetMapping("/projectExpertExportList")
+ @ApiImplicitParams({
+ @ApiImplicitParam(paramType = "query", name = "projectId", dataType = "long", required = true, value = "项目id")
+ })
+ public R<List<ProjectExpertExportInfoRes>> projectExpertExportList(@RequestParam("projectId") Long projectId)
+ {
+ return R.ok(projectManagementService.projectExpertExportList(projectId));
+ }
+
}
--
Gitblit v1.9.2