| | |
| | | import com.gkhy.labRiskManage.commons.domain.SearchResult; |
| | | import com.gkhy.labRiskManage.commons.enums.ResultCode; |
| | | import com.gkhy.labRiskManage.commons.utils.BeanCopyUtils; |
| | | import com.gkhy.labRiskManage.config.annotation.RepeatSubmit; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | result.setMsg("查询成功"); |
| | | |
| | | SearchResult<ReportQueryRespDTO> queryResult = reportAppService.selectRiskReportPage(getCurrentUserId(), queryReqBO); |
| | | result.setData(BeanCopyUtils.copyReportQueryResp(queryResult.getData(), ReportQueryRespDTO.class)); |
| | | |
| | | BeanCopyUtils.copyReportQueryResp(queryResult.getData(), ReportQueryRespDTO.class); |
| | | result.setData(BeanCopyUtils.copyReportQueryResp(queryResult.getData(), ReportQueryRespDTO.class)); |
| | | result.setPageIndex(queryResult.getPageIndex()); |
| | | result.setPageSize(queryResult.getPageSize()); |
| | | result.setTotal(queryResult.getTotal()); |
| | |
| | | * 风险评估报告 - 生成报告信息 |
| | | */ |
| | | @PostMapping("/insert/insertRiskReport") |
| | | @RepeatSubmit() |
| | | public Result insertRiskReport(@RequestBody JSONObject jsonObject){ |
| | | Result result = new Result(); |
| | | result.setCode(ResultCode.OK); |
| | |
| | | * 风险评估报告 - 填写报告信息 |
| | | */ |
| | | @PostMapping("/update/updateRiskReport") |
| | | @RepeatSubmit() |
| | | public Result updateRiskReport(@RequestBody ReportUpdateReqBO updateReqBO){ |
| | | Result result = new Result(); |
| | | result.setCode(ResultCode.OK); |
| | |
| | | * 风险评估报告 - 报告审核 - 旧 - 两层审核 |
| | | */ |
| | | @PostMapping("/update/report") |
| | | @RepeatSubmit() |
| | | public Result report(@RequestBody ReportReqBO reportReqBO){ |
| | | Result result = new Result(); |
| | | result.setCode(ResultCode.OK); |
| | |
| | | * 风险评估报告 - 报告审核 - 新 - 单次审核 |
| | | */ |
| | | @PostMapping("/update/reportNew") |
| | | @RepeatSubmit() |
| | | public Result reportNew(@RequestBody ReportReqBO reportReqBO){ |
| | | Result result = new Result(); |
| | | result.setCode(ResultCode.OK); |