| | |
| | | accidentReportInfo.setDelFlag(false); |
| | | accidentReportInfo.setCreateUid(uid); |
| | | accidentReportInfo.setGmtCreate(nowDate); |
| | | accidentReportInfo.setStatus(false); |
| | | accidentReportInfoService.addAccidentReport(accidentReportInfo); |
| | | //2.新增事故报告附件 |
| | | if (!CollectionUtils.isEmpty(accidentReportReqDTO.getFileList())) { |
| | |
| | | |
| | | |
| | | @Override |
| | | public ResultVO batchDeleteAccidentReport(String ids) { |
| | | if (StringUtils.isBlank(ids)) { |
| | | public ResultVO batchDeleteAccidentReport(Long[] ids) { |
| | | if (ids == null || ids.length==0){ |
| | | throw new AccidentException(AccidentResultCodes.ACCIDENT_REPORT_NULL); |
| | | } else { |
| | | String[] idArr = ids.split(","); |
| | | for (String id : idArr) { |
| | | deleteAccidentReport(Long.valueOf(id)); |
| | | |
| | | for (Long id : ids){ |
| | | deleteAccidentReport(id); |
| | | } |
| | | return new ResultVO(ResultCodes.OK); |
| | | } |