|
|
|
@ -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")
|
|
|
|
|