From bbc65abbb0c81587eaa9f10109aed483511ec8b2 Mon Sep 17 00:00:00 2001 From: luozukai Date: Wed, 17 Jul 2019 16:28:33 +0800 Subject: [PATCH] =?UTF-8?q?[=E8=BD=A6=E6=B5=81][=E4=BF=AE=E6=94=B9][?= =?UTF-8?q?=E8=BD=A6=E8=BE=86=E7=BC=B4=E8=B4=B9=E5=8E=BB=E9=99=A4=E9=87=8D?= =?UTF-8?q?=E5=A4=8D]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/WxCarPayRecordMapper.xml | 30 +++++++++++++++++-- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/mallinkService/src/main/resources/mapper/WxCarPayRecordMapper.xml b/mallinkService/src/main/resources/mapper/WxCarPayRecordMapper.xml index 91802d02c..502554b10 100644 --- a/mallinkService/src/main/resources/mapper/WxCarPayRecordMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCarPayRecordMapper.xml @@ -78,7 +78,32 @@ - update wx_car_pay_record set update_date = now() + insert into wx_car_pay_record values( + (select unix_timestamp(now()) + CEILING(RAND()*9000000+10000000)), + #{tenantId}, + #{vendorType}, + #{synId}, + #{parkId}, + #{parkName}, + #{userType}, + #{plateNumber}, + #{entranceTime}, + #{exitTime}, + #{stayedTime}, + #{fee}, + #{feeTime}, + #{phone}, + #{coupon}, + #{couponCode}, + #{fixParkingId}, + #{remainingDays}, + #{discountAmount}, + #{paidServiceFee}, + now(), + now() + ) + ON DUPLICATE KEY UPDATE + update_date = now() ,exit_time = #{exitTime} @@ -94,7 +119,6 @@ ,paid_service_fee = #{paidServiceFee} - - where syn_id = #{synId} +