From 8373f9da1e4d9056df710d1dd4a39b3a6f01eb3f Mon Sep 17 00:00:00 2001
From: lige <bestlige@outlook.com>
Date: 星期二, 26 十二月 2023 15:29:46 +0800
Subject: [PATCH] 会诊

---
 ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjCustomerController.java |    9 ++++++---
 1 files changed, 6 insertions(+), 3 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 9b89654..23daefe 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
@@ -293,9 +293,10 @@
         if(null !=tjCustomer.getIdType()){
             if(tjCustomer.getIdType().equals("1")){
                 b = MatchUtils.isIdCard(cusIdcard);
-            }else {
-                b = MatchUtils.cardValidate(cusIdcard, tjCustomer.getIdType());
             }
+//            else {
+//                b = MatchUtils.cardValidate(cusIdcard, tjCustomer.getIdType());
+//            }
         }else {
             return AjaxResult.error("璇烽�夋嫨璇佷欢绫诲瀷");
         }
@@ -320,7 +321,9 @@
         String substring = cusIdcard.substring(cusIdcard.length() - 6);
         substring = DigestUtils.md5DigestAsHex(substring.getBytes());
         tjCustomer.setCusPassword(substring);
-        tjCustomer.setCusBrithday(DateUtil.parse(MatchUtils.getBirthDayByIdCard(tjCustomer.getCusIdcard()), "yyyy-MM-dd"));
+        if(tjCustomer.getIdType().equals("1")){
+            tjCustomer.setCusBrithday(DateUtil.parse(MatchUtils.getBirthDayByIdCard(tjCustomer.getCusIdcard()), "yyyy-MM-dd"));
+        }
         tjCustomer.setCusNumber(0L);
         if (tjCustomerService.save(tjCustomer)) {
             return AjaxResult.success(tjCustomer);

--
Gitblit v1.8.0