| | |
| | | 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; |
| | |
| | | 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") |
| | |
| | | @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); |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | @RepeatSubmit |
| | | //@RequiresPermissions("system:assess:monitor") |
| | | @ApiOperation(value = "一键修改证书有效期") |
| | | @PostMapping("/batchChangeEmploymentDate") |
| | | public AjaxResult batchChangeEmploymentDate(@RequestBody ExpertBatchChangeReq expertInfo) { |
| | | expertInfoService.batchChangeEmploymentDate(expertInfo); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | } |