| | |
| | | boolean b = serviceDonatebaseinfoReportService.updateById(serviceDonatebaseinfoReport); |
| | | if (b) { |
| | | serviceDonatebaseinfoReportFileService.updateList(serviceDonatebaseinfoReport.getAnnexfilesList(), serviceDonatebaseinfoReport.getId(), serviceDonatebaseinfoReport.getCaseNo(), getNickName()); |
| | | if (serviceDonatebaseinfoReport.getReportStatus().equals("3")) { |
| | | if (serviceDonatebaseinfoReport.getReportStatus().equals("3")&&serviceDonatebaseinfoReport.getIsDonate().equals(1)) { |
| | | //如果同意上报,那就可以建档了(往 ServiceDonatebaseinfo新增) |
| | | serviceDonatebaseinfoReportService.createDocument(serviceDonatebaseinfoReport); |
| | | } |
| | |
| | | serviceDonatebaseinfoReport.setDelFlag(1); |
| | | return toAjax(serviceDonatebaseinfoReportService.updateById(serviceDonatebaseinfoReport)); |
| | | } |
| | | |
| | | /** |
| | | * 修改捐献上报基础 |
| | | */ |
| | | @ApiOperation("上报") |
| | | @Log(title = "上报", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/report") |
| | | @RepeatSubmit |
| | | public AjaxResult report(@RequestBody ServiceDonatebaseinfoReport serviceDonatebaseinfoReport) { |
| | | if (StringUtils.isEmpty(serviceDonatebaseinfoReport.getCaseNo())) { |
| | | throw new BaseException("案例编号为空,请检查后再修改"); |
| | | } |
| | | boolean b = serviceDonatebaseinfoReportService.updateById(serviceDonatebaseinfoReport); |
| | | |
| | | return toAjax(b); |
| | | } |
| | | } |