| | |
| | | } |
| | | BeanUtils.copyProperties(comSwDangerReportHandleDTO, comSwDangerReportDO); |
| | | comSwDangerReportDO.setStatus(String.valueOf(SafeWordStatusEnum.YCL.getCode())); |
| | | ComSwDangerReportDO comSwDangerReportDO1 = comSwDangerReportDAO.selectById(comSwDangerReportHandleDTO.getDangerReportId()); |
| | | if (!comSwDangerReportDO1.getStatus().equals(String.valueOf(SafeWordStatusEnum.DCL.getCode()))) { |
| | | return R.fail("该隐患报告已处理,请勿重复操作"); |
| | | } |
| | | int update = comSwDangerReportDAO.updateById(comSwDangerReportDO); |
| | | if (update > 0) { |
| | | return R.ok(); |
| | |
| | | BeanUtils.copyProperties(comSwDangerReportRectifyDTO, comSwDangerReportDO); |
| | | comSwDangerReportDO.setStatus(String.valueOf(SafeWordStatusEnum.YZG.getCode())); |
| | | comSwDangerReportDO.setRectifyTime(DateUtils.getCurrentDateStr()); |
| | | ComSwDangerReportDO comSwDangerReportDO1 = comSwDangerReportDAO.selectById(comSwDangerReportRectifyDTO.getDangerReportId()); |
| | | if (comSwDangerReportDO1.getStatus().equals(String.valueOf(SafeWordStatusEnum.YZG.getCode()))) { |
| | | return R.fail("该隐患报告已整改,请勿重复操作"); |
| | | } |
| | | int update = comSwDangerReportDAO.updateById(comSwDangerReportDO); |
| | | if (update > 0) { |
| | | return R.ok(); |