|
@@ -13,7 +13,7 @@
|
|
|
o.update_time,
|
|
|
s.status_name
|
|
|
from
|
|
|
- orders o
|
|
|
+ (select * from orders where status_id not in (1,2,3)) o
|
|
|
left join
|
|
|
status s
|
|
|
on
|
|
@@ -41,20 +41,20 @@
|
|
|
select
|
|
|
count(*)
|
|
|
from
|
|
|
- orders
|
|
|
+ (select * from orders where status_id not in (1,2,3)) o
|
|
|
<where>
|
|
|
- receiver_id=#{userId}
|
|
|
+ o.receiver_id=#{userId}
|
|
|
<if test="orderId!=null">
|
|
|
- and order_id=#{orderId}
|
|
|
+ and o.order_id=#{orderId}
|
|
|
</if>
|
|
|
<if test="boxNo!=null and boxNo!=''">
|
|
|
- and box_no=#{boxNo}
|
|
|
+ and o.box_no=#{boxNo}
|
|
|
</if>
|
|
|
<if test="statusId!=null">
|
|
|
- and status_id=#{statusId}
|
|
|
+ and o.status_id=#{statusId}
|
|
|
</if>
|
|
|
<if test="startTime!=null and endTime!=null">
|
|
|
- and require_time between #{startTime} and #{endTime}
|
|
|
+ and o.require_time between #{startTime} and #{endTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|