|
|
|
@ -52,8 +52,11 @@ public class AskPhysicalServiceImpl implements AskPhysicalService {
|
|
|
|
|
// 是否需要具体的部位,0否1是
|
|
|
|
|
String locationId = null;
|
|
|
|
|
if (1 == tool.getRequireLocation()) {
|
|
|
|
|
if (StrUtil.isBlank(reqVO.getLocationCode())){
|
|
|
|
|
throw new BusinessException("请选择对应的位置");
|
|
|
|
|
}
|
|
|
|
|
ConfigPhysicalLocation location = locationService.lambdaQuery().eq(ConfigPhysicalLocation::getCode, reqVO.getLocationCode()).last("limit 1")
|
|
|
|
|
.oneOpt().orElseThrow(() -> new BusinessException("为找到对应部位"));
|
|
|
|
|
.oneOpt().orElseThrow(() -> new BusinessException("未找到对应部位"));
|
|
|
|
|
locationId = location.getId();
|
|
|
|
|
}
|
|
|
|
|
DiseasePhysical result = diseasePhysicalService.lambdaQuery().eq(DiseasePhysical::getPatientId, process.getPatientId())
|
|
|
|
|