|
@@ -228,12 +228,12 @@
|
|
|
<update id="updateVipCardLogByBusId" parameterType="VipCardLog">
|
|
<update id="updateVipCardLogByBusId" parameterType="VipCardLog">
|
|
|
update beilv_vip_card_log
|
|
update beilv_vip_card_log
|
|
|
set payment_status = #{paymentStatus} , verify_time = #{verifyTime}
|
|
set payment_status = #{paymentStatus} , verify_time = #{verifyTime}
|
|
|
- where order_type = #{orderType} and bus_id = #{busId}
|
|
|
|
|
|
|
+ where order_type = #{orderType} and bus_id = #{busId} and payment_status = 'payment_status_have_paid'
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
<select id="selectVipCardLogByBusId" parameterType="String" resultMap="VipCardLogResult">
|
|
<select id="selectVipCardLogByBusId" parameterType="String" resultMap="VipCardLogResult">
|
|
|
<include refid="selectVipCardLogVo"/>
|
|
<include refid="selectVipCardLogVo"/>
|
|
|
- where bus_id = #{busId} and order_type = #{orderType}
|
|
|
|
|
|
|
+ where bus_id = #{busId} and order_type = #{orderType} and payment_status = 'payment_status_have_paid'
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|