1: queryAskPhysicalResult 未查询到工具诊断结果 或结果值为空,设置默认值

pull/1/head
xueqingkun 1 year ago
parent fb4797f631
commit d02478dc64

@ -135,7 +135,7 @@ public class AskPhysicalServiceImpl implements AskPhysicalService {
DefaultPhysicalIndicator parentPhysicalIndicator = defaultPhysicalIndicatorService.lambdaQuery().eq(DefaultPhysicalIndicator::getItemId, itemId) DefaultPhysicalIndicator parentPhysicalIndicator = defaultPhysicalIndicatorService.lambdaQuery().eq(DefaultPhysicalIndicator::getItemId, itemId)
.eq(DefaultPhysicalIndicator::getLocationId, location.getParentId()).last("limit 1").one(); .eq(DefaultPhysicalIndicator::getLocationId, location.getParentId()).last("limit 1").one();
// 如果不为空,则返回结果 // 如果不为空,则返回结果
if (ObjectUtil.isNotEmpty(parentPhysicalIndicator)) { if (ObjectUtil.isNotEmpty(parentPhysicalIndicator) && StrUtil.isNotBlank(parentPhysicalIndicator.getIndicatorValue())) {
diseasePhysical.setResult(parentPhysicalIndicator.getIndicatorValue()); diseasePhysical.setResult(parentPhysicalIndicator.getIndicatorValue());
return diseasePhysical; return diseasePhysical;
} }

Loading…
Cancel
Save