From 3d6d83b97edcdc6c38fab96380e5d33ba19a77d8 Mon Sep 17 00:00:00 2001 From: zhaowenxuan <chacca165@163.com> Date: 星期五, 18 四月 2025 19:33:47 +0800 Subject: [PATCH] 修改套餐id --- ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjCustomerController.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjCustomerController.java b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjCustomerController.java index 242247d..03e3aa7 100644 --- a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjCustomerController.java +++ b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjCustomerController.java @@ -243,7 +243,7 @@ tjCustomer1.setCusName(tjReservation.getName()); tjCustomer1.setCusSex(Long.valueOf(tjReservation.getSex())); try { - tjCustomer1.setCusBrithday(DateUtil.parse(MatchUtils.getBirthDayByIdCard(tjReservation.getIdCard()), "yyyy-MM-dd")); + tjCustomer1.setCusBrithday(MatchUtils.getBirthDayByIdCard(tjReservation.getIdCard().replaceAll(" ", ""))); } catch (Exception e) { return AjaxResult.error("韬唤璇佸彿涓嶆纭�"); } @@ -277,7 +277,7 @@ tjCustomer.setCusName(tjReservation.getName()); tjCustomer.setCusSex(Long.valueOf(tjReservation.getSex())); try { - tjCustomer.setCusBrithday(DateUtil.parse(MatchUtils.getBirthDayByIdCard(tjReservation.getIdCard()), "yyyy-MM-dd")); + tjCustomer.setCusBrithday(MatchUtils.getBirthDayByIdCard(tjReservation.getIdCard())); } catch (Exception e) { return AjaxResult.error("韬唤璇佸彿涓嶆纭�"); } @@ -521,7 +521,7 @@ tjCustomer.setCusPassword(substring); if(cusIdcard.length()==18) { try { - tjCustomer.setCusBrithday(DateUtil.parse(MatchUtils.getBirthDayByIdCard(tjCustomer.getCusIdcard()), "yyyy-MM-dd")); + tjCustomer.setCusBrithday(MatchUtils.getBirthDayByIdCard(tjCustomer.getCusIdcard())); } catch (Exception e) { return AjaxResult.error("韬唤璇佸彿涓嶆纭�"); } @@ -685,8 +685,8 @@ String apiUrl = sysConfigService.selectConfigByKey("common_api_url"); String hospbm = sysConfigService.selectConfigByKey("common_api_service_hospbm"); HashMap<String, Object> map = new HashMap<>(); - map.put("pationId",tjCustomer.getPationId()); - map.put("cardId",tjCustomer.getCardId()); + map.put("pationId",customer.getPationId()); + map.put("cardId",customer.getHisJzkh()); map.put("cusName",tjCustomer.getCusName()); map.put("cusSex",tjCustomer.getCusSex()); map.put("cusIdCard",tjCustomer.getCusIdcard()); -- Gitblit v1.8.0