Browse Source

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

fuyuchuan 1 year ago
parent
commit
aee5b620eb

+ 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();
     }
 }