From b3861b0aeea2e1085308fe15f94ed5a49287b015 Mon Sep 17 00:00:00 2001 From: xueqingkun Date: Tue, 6 Feb 2024 09:42:26 +0800 Subject: [PATCH] =?UTF-8?q?manage=EF=BC=9A=20fix=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/supervision/vo/manage/DiseasePhysicalResVo.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/virtual-patient-model/src/main/java/com/supervision/vo/manage/DiseasePhysicalResVo.java b/virtual-patient-model/src/main/java/com/supervision/vo/manage/DiseasePhysicalResVo.java index ae708cbe..9aa2cc4c 100644 --- a/virtual-patient-model/src/main/java/com/supervision/vo/manage/DiseasePhysicalResVo.java +++ b/virtual-patient-model/src/main/java/com/supervision/vo/manage/DiseasePhysicalResVo.java @@ -1,5 +1,6 @@ package com.supervision.vo.manage; +import cn.hutool.core.util.StrUtil; import cn.hutool.crypto.digest.MD5; import com.supervision.model.DiseasePhysical; import io.swagger.annotations.ApiModelProperty; @@ -74,8 +75,12 @@ public class DiseasePhysicalResVo extends DiseasePhysical { if (null == locationIdPath){ locationIdPath = new ArrayList<>(); } - locationIdPath.add(getToolParentId()); - locationIdPath.add(getLocationId()); + if (StrUtil.isNotEmpty(getToolParentId())){ + locationIdPath.add(getToolParentId()); + } + if (StrUtil.isNotEmpty(getLocationId())){ + locationIdPath.add(getLocationId()); + } } public void populateOther(){