邱宇豪
2023-11-30 0c4986436ecf233a4fe71d4ef665bdfff8a4ef97
hd/pipe/secure/src/main/java/com/thhy/secure/modules/biz/regionInspection/service/impl/RegionInspectionServiceImpl.java
@@ -79,10 +79,11 @@
            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()
@@ -97,6 +98,7 @@
            }
         }
         //添加/修改区域巡检
         regionInspectionEntity.setId(regionInspectId);
         regionInspectionEntity.setCreateUser(userId);