From 84a3d946b99a2952bfbb1dd9c5c412a2e90d9342 Mon Sep 17 00:00:00 2001 From: zzc Date: Mon, 26 May 2025 17:43:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=82=A3=E8=80=85=E5=AF=BC?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/service/impl/PmsPatientServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acupuncture-system/src/main/java/com/acupuncture/system/service/impl/PmsPatientServiceImpl.java b/acupuncture-system/src/main/java/com/acupuncture/system/service/impl/PmsPatientServiceImpl.java index 31bde663..e2d68d62 100644 --- a/acupuncture-system/src/main/java/com/acupuncture/system/service/impl/PmsPatientServiceImpl.java +++ b/acupuncture-system/src/main/java/com/acupuncture/system/service/impl/PmsPatientServiceImpl.java @@ -290,9 +290,9 @@ public class PmsPatientServiceImpl implements PmsPatientService { patient.setPinyinFull(ObjUtil.isEmpty(rowList.get(2)) ? null : PinyinUtil.getPinyin(rowList.get(2).toString(), "")); patient.setPinyinSimple(ObjUtil.isEmpty(rowList.get(2)) ? null : PinyinUtil.getFirstLetter(rowList.get(2).toString(), "")); try { - patient.setBirthDate(ObjUtil.isNotEmpty(rowList.get(4)) ? IdcardUtil.getBirthDate(rowList.get(4).toString()) : null); + patient.setBirthDate(DateUtil.parseDate(rowList.get(4).toString())); }catch (Exception e) { - patient.setBirthDate(null); + patient.setBirthDate(new Date("2020-01-01")); } patient.setCreateBy(SecurityUtils.getUsername()); patient.setId(IdUtil.getSnowflakeNextId());