| | |
| | | regionInspectionMapper.insertInspectionHazardInform(region); |
| | | } |
| | | |
| | | //添加任务的时候添加打卡记录 新增的是待打卡状态 |
| | | if (StringUtils.isBlank(regionInspectionEntity.getId())){ |
| | | for (String addUserId : userIds) { |
| | | for (String regionId : regionIds) { |
| | | //添加或修改任务的时候添加打卡记录 是待打卡状态 |
| | | for (String addUserId : userIds) { |
| | | for (String regionId : regionIds) { |
| | | RegionInspectionRecordEntity checkIsNull = regionInspectionRecordMapper.regionInfo(regionInspectionEntity.getId(), addUserId, regionId); |
| | | if (checkIsNull==null){ |
| | | RegionInspectionRecordEntity regionInspectionRecordEntity = |
| | | RegionInspectionRecordEntity |
| | | .builder() |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | //添加/修改区域巡检 |
| | | regionInspectionEntity.setId(regionInspectId); |
| | | regionInspectionEntity.setCreateUser(userId); |