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

pull/1/head
xueqingkun 11 months ago
parent 72cb442b79
commit fb4797f631

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

Loading…
Cancel
Save