| | |
| | | item.setPlaceCheckId(placeCheck.getId()); |
| | | item.setCreateUser(AuthUtil.getUserId()); |
| | | }); |
| | | List<PatrolRecord> collect = patrolRecordVOList.stream().filter(item -> item.getState().equals(0)).collect(Collectors.toList()); |
| | | boolean b = bean.saveBatch(collect); |
| | | updateById(placeCheck); |
| | | // List<PatrolRecord> collect = patrolRecordVOList.stream().filter(item -> item.getState().equals(0)).collect(Collectors.toList()); |
| | | if (patrolRecordVOList != null && patrolRecordVOList.size() > 0) { |
| | | boolean b = bean.saveBatch(patrolRecordVOList); |
| | | if (b) { |
| | | // 隐患问题大于0 则创建任务 |
| | | try { |
| | |
| | | } |
| | | return b; |
| | | } |
| | | throw new Exception("保存失败!"); |
| | | } |
| | | return save; |
| | | } |
| | | return false; |
| | | } |