From 9c5c03d58c20e03fa7adc515ea15dc2a0f4dccb8 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: Fri, 03 Jul 2026 09:29:52 +0800
Subject: [PATCH] 增加指定角色
---
expert-admin/src/main/java/com/gkhy/web/controller/bussiness/ExpertInfoController.java | 31 ++++++++++++++++++++++++++++++-
1 files changed, 30 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..d9f92bc 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
@@ -3,11 +3,14 @@
import com.gkhy.common.annotation.Anonymous;
import com.gkhy.common.annotation.RepeatSubmit;
+import com.gkhy.common.constant.RoleConstants;
import com.gkhy.common.core.controller.BaseController;
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 +37,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 +45,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()) && !SecurityUtils.hasRole(RoleConstants.EXPERT_KEY)){
+ expertInfo.setDeptId(SecurityUtils.getDeptId());
+ }
List<SysExpertInfo> sysExpertInfos = expertInfoService.exportInfoList(expertInfo);
return getDataTable(sysExpertInfos);
@@ -114,4 +134,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