From 71a397373c86d32d0c9d053e5b80820b21807328 Mon Sep 17 00:00:00 2001
From: 赵文轩 <1652863494@qq.com>
Date: 星期二, 18 六月 2024 14:57:24 +0800
Subject: [PATCH] 增加检查报告

---
 ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjCustomerController.java |   26 +++++++++++++++-----------
 1 files changed, 15 insertions(+), 11 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 b5132d1..420fc90 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
@@ -211,11 +211,11 @@
 
 //                controller.Outpincreateapply(tjCustomer);
 
-                Date dates = new Date();
+/*                Date dates = new Date();
                 final String date = DateUtil.format(dates, "yyyy-MM-dd HH:mm:ss");
                 OutpinregapplyDto outpinregapplyDto = new OutpinregapplyDto();
                 outpinregapplyDto.setPationid(tjCustomerServiceOne.getPationId());
-                outpinregapplyDto.setSqysbm(SecurityUtils.getUsername());
+                outpinregapplyDto.setSqysbm("00029");
                 outpinregapplyDto.setMzksbm("0101");
                 outpinregapplyDto.setCzybm("00029");
                 outpinregapplyDto.setSfjz("0");
@@ -235,10 +235,12 @@
                         String hisRegistrationId = resultDatasss.get("his_registration_id").toString();
                         //闂ㄨ瘖鍖荤敓鎺ヨ瘖
                         controller.Outpinconapply(hisRegistrationId, date, SecurityUtils.getUsername());
-                        tjCustomerServiceOne.setCardId(hisRegistrationId);
-                        tjCustomerService.updateById(tjCustomerServiceOne);
+//                        tjCustomerServiceOne.setCardId(hisRegistrationId);
+//                        tjCustomerServiceOne.setCusBrithday(DateUtil.parse(MatchUtils.getBirthDayByIdCard(tjCustomerServiceOne.getCusIdcard()),"yyyy-MM-dd"));
+//                        tjCustomerService.updateById(tjCustomerServiceOne);
+                        tjCustomerService.updateCardId(tjCustomerServiceOne.getCusId(),hisRegistrationId);
                     }
-                }
+                }*/
             }
 
             //end====2023.12.12
@@ -347,6 +349,10 @@
                 tjCustomer.setGroupingId(tjReservation.getGroupingId());
                 return success(tjCustomer);
             } else {
+                LambdaQueryWrapper<TjCustomer> customerLambdaQueryWrapper1 = new LambdaQueryWrapper<>();
+                customerLambdaQueryWrapper1.eq(TjCustomer::getCusIdcard, cusIdcard);
+                TjCustomer one = tjCustomerService.getOne(customerLambdaQueryWrapper1);
+                System.out.println("------------------"+one.getCusBrithday());
                 return AjaxResult.success("鏆傛棤棰勭害淇℃伅", tjCustomerServiceOne);
             }
         }
@@ -475,7 +481,7 @@
         substring = DigestUtils.md5DigestAsHex(substring.getBytes());
         tjCustomer.setCusPassword(substring);
 //        if (tjCustomer.getIdType().equals("1")) {
-//            tjCustomer.setCusBrithday(DateUtil.parse(MatchUtils.getBirthDayByIdCard(tjCustomer.getCusIdcard()), "yyyy-MM-dd"));
+            tjCustomer.setCusBrithday(DateUtil.parse(MatchUtils.getBirthDayByIdCard(tjCustomer.getCusIdcard()), "yyyy-MM-dd"));
 //        }
         tjCustomer.setCusNumber(0L);
         String config = sysConfigService.selectConfigByKey("sfkqdyhis");
@@ -501,13 +507,11 @@
             if (null != resultData && resultData.size() > 0) {
                 String pationid = resultData.get("PationId").toString();
                 if (null != pationid) {
-
                     tjCustomer.setPationId(pationid);
-//                    tjCustomerService.updateById(tjCustomer);
-      /*
-                        OutpinregapplyDto outpinregapplyDto = new OutpinregapplyDto();
+                    tjCustomerService.updateById(tjCustomer);
+/*                        OutpinregapplyDto outpinregapplyDto = new OutpinregapplyDto();
                         outpinregapplyDto.setPationid(pationid);
-                        outpinregapplyDto.setSqysbm(SecurityUtils.getUsername());
+                        outpinregapplyDto.setSqysbm("00029");
                         outpinregapplyDto.setMzksbm("0101");
                         outpinregapplyDto.setCzybm("00029");
                         outpinregapplyDto.setSfjz("0");

--
Gitblit v1.8.0