Просмотр исходного кода

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

release_toaliyun_real
luozukai 6 лет назад
committed by Stormeye Wu
Родитель
Сommit
1fb8e585ce
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>

Загрузка…
Отмена
Сохранить