| | |
| | | |
| | | 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.pojo.InternalReport; |
| | | import com.ruoyi.manage.service.InternalReportService; |
| | | 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("/pageInternalReport") |
| | | public Result<IPage<InternalReport>> pageInternalReport(@RequestBody Map<String, Object> data) throws Exception { |
| | | Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); |
| | | InternalReport internalReport = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), InternalReport.class); |
| | | public Result<IPage<InternalReport>> pageInternalReport(Page page,InternalReport internalReport) throws Exception { |
| | | return Result.success(internalReportService.pageInternalReport(page, internalReport)); |
| | | } |
| | | |
| | |
| | | * 内审报告新增 |
| | | * @return |
| | | */ |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "内审报告新增") |
| | | @PostMapping("/addInternalReport") |
| | | public Result addInternalReport(@RequestBody InternalReport internalReport){ |
| | |
| | | * 内审报告修改 |
| | | * @return |
| | | */ |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "内审报告修改") |
| | | @PostMapping("/updateInternalReport") |
| | | public Result updateInternalReport(@RequestBody InternalReport internalReport){ |
| | |
| | | * 内审报告删除 |
| | | * @return |
| | | */ |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "内审报告删除") |
| | | @GetMapping("/delInternalReport") |
| | | public Result delInternalReport(Integer reportId){ |
| | |
| | | * 内审报告查看详情 |
| | | * @return |
| | | */ |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "内审报告查看详情") |
| | | @GetMapping("/getInternalReportOne") |
| | | public Result<InternalReport> getInternalReportOne(Integer reportId){ |
| | |
| | | * 内审检查审核 |
| | | * @return |
| | | */ |
| | | @ValueClassify("内审报告") |
| | | @ApiOperation(value = "内审检查审核") |
| | | @PostMapping("/examineInternalReport") |
| | | public Result examineInternalReport(@RequestBody InternalReport internalReport){ |
| | |
| | | * 内审报告质量负责人填写 |
| | | * @return |
| | | */ |
| | | @ValueClassify("内审报告") |
| | | @ApiOperation(value = "内审报告质量负责人填写") |
| | | @PostMapping("/qualityInternalReport") |
| | | public Result qualityInternalReport(@RequestBody InternalReport internalReport){ |
| | |
| | | * 导出内审报告 |
| | | * @return |
| | | */ |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "导出内审报告") |
| | | @GetMapping("/exportInternalReport") |
| | | public void exportInternalReport(Integer reportId, HttpServletResponse response){ |