From 47c0c2fbf4e9f57ef1f05481b43554a5d7089e32 Mon Sep 17 00:00:00 2001
From: kongdeqiang <kongdeqiang960204@163.com>
Date: 星期二, 06 六月 2023 00:40:51 +0800
Subject: [PATCH] 提交更新

---
 src/main/java/com/boying/controller/phone/YCPayController.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/boying/controller/phone/YCPayController.java b/src/main/java/com/boying/controller/phone/YCPayController.java
index ac244ab..a4f7935 100644
--- a/src/main/java/com/boying/controller/phone/YCPayController.java
+++ b/src/main/java/com/boying/controller/phone/YCPayController.java
@@ -40,6 +40,7 @@
     private final TicketBlackService ticketBlackService;
     private final SystemConfigProperties systemConfigProperties;
     private final WhiteListService whiteListService;
+    private final EnterParkService enterParkService;
 
     /**
      * 鏌ヨ璁㈠崟鎺ュ彛
@@ -261,6 +262,13 @@
         orderRecord.setTicketStatus(0);
         orderRecord.setPayCode(outPark.getPayCode());
         orderRecordService.saveOrUpdate(orderRecord);
+        if(outPark.getImgId() != null){
+            orderRecord.setImgOutId(outPark.getImgId());
+        }
+        EnterPark enterPark = enterParkService.getByCarNoAndDate(outPark.getCarNo(), outPark.getParkId(), outPark.getEnterTime());
+        if(enterPark != null && enterPark.getImgId() != null){
+            orderRecord.setImgInId(enterPark.getImgId());
+        }
     }
 
     //鎻掑叆鎵ф硶璁㈠崟璁板綍
@@ -299,6 +307,10 @@
         Path path = Paths.get("E:\\ycCheckBill\\Bank_PSBC_20350421.txt");
         try {
             List<String>  lines = Files.readAllLines(path);
+            String s = lines.get(0);
+            String[] split = s.split("\\|");
+
+
             for (String line : lines) {
                 System.out.println(line);
             }

--
Gitblit v1.9.1