|
|
|
@@ -78,7 +78,32 @@ |
|
|
|
|
|
|
|
|
|
|
|
<update id="updateBySynId" parameterType="com.iformall.domain.po.WxCarPayRecord"> |
|
|
|
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() |
|
|
|
<if test="null != exitTime"> |
|
|
|
,exit_time = #{exitTime} |
|
|
|
</if> |
|
|
|
@@ -94,7 +119,6 @@ |
|
|
|
<if test="null != paidServiceFee"> |
|
|
|
,paid_service_fee = #{paidServiceFee} |
|
|
|
</if> |
|
|
|
|
|
|
|
where syn_id = #{synId} |
|
|
|
</update> |
|
|
|
|
|
|
|
</mapper> |