|
|
@@ -902,11 +902,11 @@
|
|
|
<include refid="Base_Column_List" />
|
|
|
from t_order where delete_sign = 0
|
|
|
<choose>
|
|
|
- <when test="intentionStatus == 0"><!-- 意向订单 -->
|
|
|
- and order_status = 0 and (buyer_id = #{uid,jdbcType=VARCHAR} or seller_id = #{uid,jdbcType=VARCHAR})
|
|
|
+ <when test="orderStatus == 0"><!-- 意向订单 -->
|
|
|
+ and order_status = 1 and (buyer_id = #{uid,jdbcType=VARCHAR} or seller_id = #{uid,jdbcType=VARCHAR})
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
- and order_status != 0 and (buyer_id = #{uid,jdbcType=VARCHAR} or seller_id = #{uid,jdbcType=VARCHAR})
|
|
|
+ and order_status != 1 and (buyer_id = #{uid,jdbcType=VARCHAR} or seller_id = #{uid,jdbcType=VARCHAR})
|
|
|
</otherwise>
|
|
|
</choose>
|
|
|
order by create_time desc
|
|
|
@@ -920,11 +920,11 @@
|
|
|
count(0)
|
|
|
from t_order where delete_sign = 0
|
|
|
<choose>
|
|
|
- <when test="intentionStatus == 0"><!-- 意向订单 -->
|
|
|
- and order_status = 0 and (buyer_id = #{uid,jdbcType=VARCHAR} or seller_id = #{uid,jdbcType=VARCHAR})
|
|
|
+ <when test="orderStatus == 0"><!-- 意向订单 -->
|
|
|
+ and order_status = 1 and (buyer_id = #{uid,jdbcType=VARCHAR} or seller_id = #{uid,jdbcType=VARCHAR})
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
- and order_status != 0 and buyer_id = #{uid,jdbcType=VARCHAR}
|
|
|
+ and order_status != 1 and buyer_id = #{uid,jdbcType=VARCHAR}
|
|
|
</otherwise>
|
|
|
</choose>
|
|
|
</select>
|