| | |
| | | import com.gkhy.assess.system.domain.SysAgency; |
| | | import com.gkhy.assess.system.domain.SysExpertClassify; |
| | | import com.gkhy.assess.system.domain.SysExpertInfo; |
| | | import com.gkhy.assess.system.domain.SysUser; |
| | | import com.gkhy.assess.system.service.SysExpertInfoService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | @Autowired |
| | | private SysExpertInfoService expertInfoService; |
| | | |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @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") |
| | | @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10,最大50") |
| | | }) |
| | | @GetMapping("/list") |
| | | public CommonResult exportInfoList(SysExpertInfo expertInfo){ |
| | | return CommonResult.success(expertInfoService.exportInfoList(expertInfo)); |
| | | } |
| | | |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "新增专家信息") |
| | | @PostMapping("/add") |
| | |
| | | return CommonResult.success(expertInfoService.addExpertInfo(expertInfo)); |
| | | } |
| | | |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "修改专家信息") |
| | | @PutMapping("/mod") |
| | |
| | | return CommonResult.success(expertInfoService.modExpertInfo(expertInfo)); |
| | | } |
| | | |
| | | |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "删除专家信息") |
| | | @DeleteMapping("/del/{expertId}") |
| | |
| | | return CommonResult.success(expertInfoService.delExpertInfo(expertId)); |
| | | } |
| | | |
| | | |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "批量删除专家信息") |
| | | @DeleteMapping("/del/batch/{expertIds}") |
| | |
| | | return CommonResult.success(expertInfoService.delExpertInfoBatch(expertIds)); |
| | | } |
| | | |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @ApiOperation(value = "根据id获取专家信息") |
| | | @GetMapping("/detail/{expertId}") |
| | | public CommonResult exportInfoDetail(@PathVariable(value = "expertId") Long expertId){ |
| | | return CommonResult.success(expertInfoService.exportInfoDetail(expertId)); |
| | | } |
| | | |
| | | |
| | | |
| | | @RepeatSubmit |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @ApiOperation(value = "审批状态修改,审批状态(0暂存,1审核中,2审批通过,3审批驳回,4已作废)") |
| | | @PostMapping("/changeApprove") |
| | | public CommonResult changeApprove(@RequestBody SysExpertInfo expertInfo) |
| | | { |
| | | return CommonResult.success(expertInfoService.changeApprove(expertInfo)); |
| | | } |
| | | |
| | | |
| | | } |