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);