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} +