优化 关闭15分钟未支付订单

This commit is contained in:
Guoqs
2024-11-29 09:50:32 +08:00
parent ee84a042b8
commit 8f650843e3
3 changed files with 17 additions and 4 deletions

View File

@@ -2464,7 +2464,18 @@
where del_flag = '0'
and order_status = '0'
and pay_status = '0'
and create_time <![CDATA[ <= ]]> #{createTime,jdbcType=VARCHAR}
<!--and create_time <![CDATA[ <= ]]> #{createTime,jdbcType=VARCHAR}-->
and create_time between date_sub(#{createTime,jdbcType=VARCHAR}, interval 15 minute) and #{createTime,jdbcType=VARCHAR}
</select>
<select id="getUnpaidOrderList" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from order_basic_info
where del_flag = '0'
and order_status = '0'
and pay_status = '0'
and create_time between #{startTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR}
</select>
<select id="selectOrderListByTimeRangeAndStatus" resultMap="BaseResultMap">