|
|
@@ -121,12 +121,28 @@
|
|
|
<if test="query.orderNumber!=null and query.orderNumber!=''">
|
|
|
and tor.order_number = #{query.orderNumber}
|
|
|
</if>
|
|
|
- <if test="query.status!=null and query.status!=-1 and query.status!=1">
|
|
|
- and tor.status = #{query.status}
|
|
|
- </if>
|
|
|
- <if test="query.status!=null and query.status==1">
|
|
|
- and tor.status in (1,2)
|
|
|
- </if>
|
|
|
+ <choose>
|
|
|
+ <when test="query.status!=null and query.status==1">
|
|
|
+ and tor.status in (1,2)
|
|
|
+ </when>
|
|
|
+ <when test="query.status!=null and query.status==14">
|
|
|
+ and tor.status in (5,8)
|
|
|
+ </when>
|
|
|
+ <when test="query.status!=null and query.status==15">
|
|
|
+ and tor.status in (3,4,6,7)
|
|
|
+ </when>
|
|
|
+ <when test="query.status!=null">
|
|
|
+ and tor.status = #{query.status}
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
+<!-- <if test="query.status!=null and query.status!=-1 and query.status!=1">-->
|
|
|
+<!-- and tor.status = #{query.status}-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="query.status!=null and query.status==1">-->
|
|
|
+<!-- and tor.status in (1,2)-->
|
|
|
+<!-- </if>-->
|
|
|
<if test="query.shopId!=null">
|
|
|
and tor.shop_id = #{query.shopId}
|
|
|
</if>
|
|
|
@@ -205,12 +221,28 @@
|
|
|
<if test="query.orderNumber!=null and query.orderNumber!=''">
|
|
|
and tor.order_number = #{query.orderNumber}
|
|
|
</if>
|
|
|
- <if test="query.status!=null and query.status!=-1 and query.status!=1">
|
|
|
- and tor.status = #{query.status}
|
|
|
- </if>
|
|
|
- <if test="query.status!=null and query.status==1">
|
|
|
- and tor.status in (1,2)
|
|
|
- </if>
|
|
|
+ <choose>
|
|
|
+ <when test="query.status!=null and query.status==1">
|
|
|
+ and tor.status in (1,2)
|
|
|
+ </when>
|
|
|
+ <when test="query.status!=null and query.status==14">
|
|
|
+ and tor.status in (5,8)
|
|
|
+ </when>
|
|
|
+ <when test="query.status!=null and query.status==15">
|
|
|
+ and tor.status in (3,4,6,7)
|
|
|
+ </when>
|
|
|
+ <when test="query.status!=null">
|
|
|
+ and tor.status = #{query.status}
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
+<!-- <if test="query.status!=null and query.status!=-1 and query.status!=1">-->
|
|
|
+<!-- and tor.status = #{query.status}-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="query.status!=null and query.status==1">-->
|
|
|
+<!-- and tor.status in (1,2)-->
|
|
|
+<!-- </if>-->
|
|
|
<if test="query.shopId!=null">
|
|
|
and tor.shop_id = #{query.shopId}
|
|
|
</if>
|
|
|
@@ -630,12 +662,28 @@
|
|
|
<if test="query.orderNumber!=null and query.orderNumber!=''">
|
|
|
and tor.order_number = #{query.orderNumber}
|
|
|
</if>
|
|
|
- <if test="query.status!=null and query.status!=-1 and query.status!=1">
|
|
|
- and tor.status = #{query.status}
|
|
|
- </if>
|
|
|
- <if test="query.status!=null and query.status==1">
|
|
|
- and tor.status in (1,2)
|
|
|
- </if>
|
|
|
+ <choose>
|
|
|
+ <when test="query.status!=null and query.status==1">
|
|
|
+ and tor.status in (1,2)
|
|
|
+ </when>
|
|
|
+ <when test="query.status!=null and query.status==14">
|
|
|
+ and tor.status in (5,8)
|
|
|
+ </when>
|
|
|
+ <when test="query.status!=null and query.status==15">
|
|
|
+ and tor.status in (3,4,6,7)
|
|
|
+ </when>
|
|
|
+ <when test="query.status!=null">
|
|
|
+ and tor.status = #{query.status}
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
+<!-- <if test="query.status!=null and query.status!=-1 and query.status!=1">-->
|
|
|
+<!-- and tor.status = #{query.status}-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="query.status!=null and query.status==1">-->
|
|
|
+<!-- and tor.status in (1,2)-->
|
|
|
+<!-- </if>-->
|
|
|
<if test="query.shopId!=null">
|
|
|
and tor.shop_id = #{query.shopId}
|
|
|
</if>
|