| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.annotation.ValueAuth; |
| | | import com.ruoyi.manage.annotation.ValueClassify; |
| | | import com.deepoove.poi.data.style.*; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.dto.InternalPlanDto; |
| | | import com.ruoyi.manage.pojo.InternalPlan; |
| | | import com.ruoyi.manage.service.InternalPlanService; |
| | | import com.ruoyi.manage.utils.JackSonUtil; |
| | | import com.ruoyi.manage.vo.Result; |
| | | import com.deepoove.poi.data.style.*; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | |
| | | |
| | | /** |
| | | * 内审年度计划分页查询 |
| | | * @param data |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "内审年度计划分页查询") |
| | | @PostMapping("/pageInternalPlan") |
| | | public Result<IPage<InternalPlanDto>> pageInternalPlan(@RequestBody Map<String, Object> data) throws Exception { |
| | | Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); |
| | | InternalPlan internalPlan = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), InternalPlan.class); |
| | | public Result<IPage<InternalPlanDto>> pageInternalPlan(Page page,InternalPlan internalPlan) throws Exception { |
| | | return Result.success(internalPlanService.pageInternalPlan(page, internalPlan)); |
| | | } |
| | | |
| | |
| | | * 内审年度计划新增 |
| | | * @return |
| | | */ |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "内审年度计划新增") |
| | | @PostMapping("/addInternalPlan") |
| | | public Result addInternalPlan(@RequestBody InternalPlanDto internalPlan){ |
| | |
| | | * 内审年度计划修改 |
| | | * @return |
| | | */ |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "内审年度计划修改") |
| | | @PostMapping("/updateInternalPlan") |
| | | public Result updateInternalPlan(@RequestBody InternalPlanDto internalPlan){ |
| | |
| | | * 内审年度计划删除 |
| | | * @return |
| | | */ |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "内审年度计划删除") |
| | | @GetMapping("/delInternalPlan") |
| | | public Result delInternalPlan(Integer planId){ |
| | |
| | | * 内审年度计划查看详情 |
| | | * @return |
| | | */ |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "内审年度计划查看详情") |
| | | @GetMapping("/getInternalPlanOne") |
| | | public Result<InternalPlanDto> getInternalPlanOne(Integer planId){ |
| | |
| | | * 内审年度计划审核 |
| | | * @return |
| | | */ |
| | | @ValueClassify("内审年度计划") |
| | | @ApiOperation(value = "内审年度计划审核") |
| | | @PostMapping("/examineInternalPlan") |
| | | public Result examineInternalPlan(@RequestBody InternalPlanDto internalPlanDto){ |
| | |
| | | * 内审年度计划批准 |
| | | * @return |
| | | */ |
| | | @ValueClassify("内审年度计划") |
| | | @ApiOperation(value = "内审实施计划批准") |
| | | @PostMapping("/ratifyInternalPlan") |
| | | public Result ratifyInternalPlan(@RequestBody InternalPlanDto internalPlanDto){ |
| | |
| | | * 导出内审年度计划 |
| | | * @return |
| | | */ |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "导出内审年度计划") |
| | | @GetMapping("/exportInternalPlan") |
| | | public void exportInternalPlan(Integer planId, HttpServletResponse response){ |