| | |
| | | |
| | | import com.gkhy.exam.common.annotation.RepeatSubmit; |
| | | import com.gkhy.exam.common.api.CommonResult; |
| | | import com.gkhy.exam.system.domain.Meetings; |
| | | import com.gkhy.exam.system.domain.vo.InternalAuditCheckVo; |
| | | import com.gkhy.exam.system.domain.InternalAuditCheck; |
| | | import com.gkhy.exam.system.service.InternalAuditCheckService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | |
| | | @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 = "companyId", dataType = "int", required = false, value = "公司id"), |
| | | @ApiImplicitParam(paramType = "query", name = "year", dataType = "String" , required = false, value = "年份") |
| | | }) |
| | | @GetMapping("/selectInternalAuditCheckList") |
| | | public CommonResult selectInternalAuditCheckList(Integer companyId){ |
| | | return CommonResult.success(internalAuditCheckService.selectInternalAuditCheckList(companyId)); |
| | | public CommonResult selectInternalAuditCheckList(Integer companyId, String year){ |
| | | return CommonResult.success(internalAuditCheckService.selectInternalAuditCheckList(companyId,year)); |
| | | } |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "新增内审检查") |
| | | @PostMapping("/saveInternalAuditCheck") |
| | | public CommonResult insertInternalAuditCheck(@RequestBody @Validated InternalAuditCheckVo internalAuditCheckVo){ |
| | | return internalAuditCheckService.insertInternalAuditCheck(internalAuditCheckVo); |
| | | public CommonResult insertInternalAuditCheck(@RequestBody @Validated InternalAuditCheck internalAuditCheck){ |
| | | return internalAuditCheckService.insertInternalAuditCheck(internalAuditCheck); |
| | | } |
| | | @ApiOperation(value = "修改内审检查") |
| | | @PostMapping("/updateInternalAuditCheck") |
| | | public CommonResult updateInternalAuditCheck(@RequestBody @Validated InternalAuditCheckVo internalAuditCheckVo){ |
| | | return internalAuditCheckService.updateInternalAuditCheck(internalAuditCheckVo); |
| | | public CommonResult updateInternalAuditCheck(@RequestBody @Validated InternalAuditCheck internalAuditCheck){ |
| | | return internalAuditCheckService.updateInternalAuditCheck(internalAuditCheck); |
| | | } |
| | | @ApiOperation(value = "删除内审检查") |
| | | @ApiImplicitParams({ |
| | |
| | | return internalAuditCheckService.deletedInternalAuditCheck(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "内审检查详情") |
| | | |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "一键复制内审检查") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", name = "id", dataType = "int", required = true, value = "id"), |
| | | @ApiImplicitParam(paramType = "query", name = "companyId", dataType = "int", required = false, value = "公司id,不传则使用当前登录用户公司"), |
| | | @ApiImplicitParam(paramType = "query", name = "sourceYear", dataType = "String", required = true, value = "源年份"), |
| | | @ApiImplicitParam(paramType = "query", name = "targetYear", dataType = "String", required = true, value = "目标年份"), |
| | | }) |
| | | @GetMapping("/internalAuditCheckInfo") |
| | | public CommonResult internalAuditCheckInfo(@RequestParam Integer id){ |
| | | return internalAuditCheckService.internalAuditCheckInfo(id); |
| | | @GetMapping("/copyInternalAuditCheck") |
| | | public CommonResult copyInternalAuditCheck( |
| | | @RequestParam(required = false) Integer companyId, |
| | | @RequestParam String sourceYear, |
| | | @RequestParam String targetYear) { |
| | | return internalAuditCheckService.copyInternalAuditCheck(companyId, sourceYear, targetYear); |
| | | } |
| | | // @ApiOperation(value = "内审检查详情") |
| | | // @ApiImplicitParams({ |
| | | // @ApiImplicitParam(paramType = "query", name = "id", dataType = "int", required = true, value = "id"), |
| | | // }) |
| | | // @GetMapping("/internalAuditCheckInfo") |
| | | // public CommonResult internalAuditCheckInfo(@RequestParam Integer id){ |
| | | // return internalAuditCheckService.internalAuditCheckInfo(id); |
| | | // } |
| | | } |