web : 1. 查询体格检查的结果接口,如果未查询到检查部位,提供空数据

release_1.0.0
xueqingkun 1 year ago
parent 104885d174
commit 9059abc340

@ -62,7 +62,7 @@ public class AskPhysicalServiceImpl implements AskPhysicalService {
throw new BusinessException("请选择对应的位置");
}
location = locationService.lambdaQuery().eq(ConfigPhysicalLocation::getCode, reqVO.getLocationCode()).last("limit 1")
.oneOpt().orElseThrow(() -> new BusinessException("未找到对应部位"));
.oneOpt().orElseGet(ConfigPhysicalLocation::new);
}
DiseasePhysical result = diseasePhysicalService.lambdaQuery().eq(DiseasePhysical::getMedicalRecId, process.getMedicalRecId())
.eq(DiseasePhysical::getToolId, tool.getId()).eq(StrUtil.isNotBlank(location.getId()), DiseasePhysical::getLocationId, location.getId()).last("limit 1")

Loading…
Cancel
Save