Преглед на файлове

Merge branch 'fu-dev' of uskycloud/usky-modules into server-165

fuyuchuan преди 1 година
родител
ревизия
aee5b620eb
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      service-fire/service-fire-biz/src/main/java/com/usky/fire/service/impl/PatrolInspectionTypeServiceImpl.java

+ 3 - 0
service-fire/service-fire-biz/src/main/java/com/usky/fire/service/impl/PatrolInspectionTypeServiceImpl.java

@@ -77,6 +77,9 @@ public class PatrolInspectionTypeServiceImpl extends AbstractCrudService<PatrolI
         queryWrapper.select(PatrolInspectionType::getTypeName)
                 .eq(PatrolInspectionType::getOperateCode,code);
         PatrolInspectionType patrolInspectionType = baseMapper.selectOne(queryWrapper);
+        if (patrolInspectionType == null) {
+            return "";
+        }
             return patrolInspectionType.getTypeName();
     }
 }