From 27a3d73849ec6acfa589d0f3556a860fca057844 Mon Sep 17 00:00:00 2001 From: wyb <1977763549@qq.com> Date: Thu, 27 Jul 2023 09:45:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=BA=E5=BE=B7=E4=BA=BA=E5=8C=BB=E7=B4=A2?= =?UTF-8?q?=E5=BC=95=EF=BC=8C=E5=8E=BB=E6=8E=89m=E5=92=8Cz?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/collection/service/impl/TBasicServiceImpl.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/docus/server/collection/service/impl/TBasicServiceImpl.java b/src/main/java/com/docus/server/collection/service/impl/TBasicServiceImpl.java index de85dae..384611e 100644 --- a/src/main/java/com/docus/server/collection/service/impl/TBasicServiceImpl.java +++ b/src/main/java/com/docus/server/collection/service/impl/TBasicServiceImpl.java @@ -185,11 +185,12 @@ public class TBasicServiceImpl implements ITBasicService { tBasic.setAdmissDays(admissDays); tBasic.setIsDead(isDead); - TBasicExtend tBasicExtend=new TBasicExtend(); + String sdryIndex = tBasicDto.getSdryIndex(); + TBasicExtend tBasicExtend = new TBasicExtend(); tBasicExtend.setPatientId(patientId); tBasicExtend.setWardCode(tBasicDto.getWardCode()); tBasicExtend.setWardName(tBasicDto.getWardName()); - tBasicExtend.setSdryIndex(tBasicDto.getSdryIndex()); + tBasicExtend.setSdryIndex(sdryIndex == null ? null : sdryIndex.replace("z", "").replace("m","")); //持久化 tBasicMapper.update(tBasic); @@ -265,11 +266,12 @@ public class TBasicServiceImpl implements ITBasicService { tBasic.setAdmissDays(admissDays); tBasic.setIsDead(isDead); + String sdryIndex = tBasicDto.getSdryIndex(); TBasicExtend tBasicExtend=new TBasicExtend(); tBasicExtend.setPatientId(patientId); tBasicExtend.setWardCode(tBasicDto.getWardCode()); tBasicExtend.setWardName(tBasicDto.getWardName()); - tBasicExtend.setSdryIndex(tBasicDto.getSdryIndex()); + tBasicExtend.setSdryIndex(sdryIndex==null?null:sdryIndex.replace("z","").replace("m","")); //持久化 tBasicMapper.update(tBasic);