| | |
| | | import com.gkhy.exam.common.annotation.RepeatSubmit; |
| | | import com.gkhy.exam.common.api.CommonResult; |
| | | import com.gkhy.exam.system.domain.ManagementPlan; |
| | | import com.gkhy.exam.system.domain.Meetings; |
| | | import com.gkhy.exam.system.service.ManagementPlanService; |
| | | 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("/selectManagementPlanList") |
| | | public CommonResult selectManagementPlanList(Integer companyId){ |
| | | return CommonResult.success(managementPlanService.selectManagementPlanList(companyId)); |
| | | public CommonResult selectManagementPlanList(ManagementPlan managementPlan){ |
| | | return CommonResult.success(managementPlanService.selectManagementPlanList(managementPlan)); |
| | | } |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "新增管理审批计划") |
| | |
| | | return managementPlanService.deletedManagementPlan(id); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "一键复制管理审批计划") |
| | | @ApiImplicitParams({ |
| | | @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("/copyManagementPlan") |
| | | public CommonResult copyManagementPlan(@RequestParam(required = false) Integer companyId, @RequestParam String sourceYear, @RequestParam String targetYear) { |
| | | return managementPlanService.copyManagementPlan(companyId, sourceYear, targetYear); |
| | | } |
| | | |
| | | } |