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