From 05600d089901d44e8d5036046025b6a90ceb896a Mon Sep 17 00:00:00 2001 From: heheng <heheng@123456> Date: 星期二, 03 十二月 2024 16:57:20 +0800 Subject: [PATCH] 修改及增加功能 --- expert-admin/src/main/java/com/gkhy/web/controller/bussiness/ExpertInfoController.java | 30 +++++++++++++++++++++++++++++- 1 files changed, 29 insertions(+), 1 deletions(-) diff --git a/expert-admin/src/main/java/com/gkhy/web/controller/bussiness/ExpertInfoController.java b/expert-admin/src/main/java/com/gkhy/web/controller/bussiness/ExpertInfoController.java index 3079375..0be9382 100644 --- a/expert-admin/src/main/java/com/gkhy/web/controller/bussiness/ExpertInfoController.java +++ b/expert-admin/src/main/java/com/gkhy/web/controller/bussiness/ExpertInfoController.java @@ -7,7 +7,9 @@ import com.gkhy.common.core.domain.AjaxResult; import com.gkhy.common.core.domain.R; import com.gkhy.common.core.page.TableDataInfo; +import com.gkhy.common.utils.SecurityUtils; import com.gkhy.system.domain.SysExpertInfo; +import com.gkhy.system.domain.vo.request.ExpertBatchChangeReq; import com.gkhy.system.domain.vo.request.SysExpertInfoRoundReq; import com.gkhy.system.domain.vo.request.SysExpertSearchReqDto; import com.gkhy.system.domain.vo.response.ProjectExpertSectionResp; @@ -34,7 +36,7 @@ private SysExpertInfoService expertInfoService; // @RequiresPermissions("system:assess:monitor") - @ApiOperation(value = "专家列表(分页)") + @ApiOperation(value = "专家列表(分页-都可见)") @ApiImplicitParams({ @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"), @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10,最大50") @@ -42,6 +44,23 @@ @GetMapping("/list") public TableDataInfo exportInfoList(SysExpertInfo expertInfo) { startPage(); + List<SysExpertInfo> sysExpertInfos = expertInfoService.exportInfoList(expertInfo); + return getDataTable(sysExpertInfos); + + } + + + @ApiOperation(value = "专家列表(分页-限制处室)") + @ApiImplicitParams({ + @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"), + @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10,最大50") + }) + @GetMapping("/perList") + public TableDataInfo exportInfoPerList(SysExpertInfo expertInfo) { + startPage(); + if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())){ + expertInfo.setDeptId(SecurityUtils.getDeptId()); + } List<SysExpertInfo> sysExpertInfos = expertInfoService.exportInfoList(expertInfo); return getDataTable(sysExpertInfos); @@ -114,4 +133,13 @@ } + @RepeatSubmit + //@RequiresPermissions("system:assess:monitor") + @ApiOperation(value = "一键修改证书有效期") + @PostMapping("/batchChangeEmploymentDate") + public AjaxResult batchChangeEmploymentDate(@RequestBody ExpertBatchChangeReq expertInfo) { + expertInfoService.batchChangeEmploymentDate(expertInfo); + return AjaxResult.success(); + } + } -- Gitblit v1.9.2