Преглед на файлове

[车流][修改][车辆缴费去除重复]

release_toaliyun_real
luozukai преди 6 години
родител
ревизия
bbc65abbb0
променени са 1 файла, в които са добавени 27 реда и са изтрити 3 реда
  1. +27
    -3
      mallinkService/src/main/resources/mapper/WxCarPayRecordMapper.xml

+ 27
- 3
mallinkService/src/main/resources/mapper/WxCarPayRecordMapper.xml Целия файл

@@ -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>

Зареждане…
Отказ
Запис