From 05baadbfd6932a2d2db2526c20db7888c1fc58a5 Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期二, 06 六月 2023 17:15:36 +0800
Subject: [PATCH] 修改

---
 src/main/java/com/boying/controller/phone/YCPayController.java |   11 +++++++++++
 1 files changed, 11 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 6eb5003..f92ccb6 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;
 
     /**
      * 鏌ヨ璁㈠崟鎺ュ彛
@@ -260,6 +261,16 @@
         orderRecord.setType(1);
         orderRecord.setTicketStatus(0);
         orderRecord.setPayCode(outPark.getPayCode());
+        if(outPark.getImgId() != null){
+            orderRecord.setImgOutId(outPark.getImgId());
+        }
+        List<EnterPark> byCarNo = enterParkService.findByCarNo(outPark.getCarNo(),outPark.getParkId());
+        if(byCarNo.size() >0){
+            EnterPark enterPark = byCarNo.get(0);
+            if(enterPark != null && enterPark.getImgId() != null){
+                orderRecord.setImgInId(enterPark.getImgId());
+            }
+        }
         orderRecordService.saveOrUpdate(orderRecord);
     }
 

--
Gitblit v1.9.1