|
@@ -46,20 +46,20 @@
|
|
|
select
|
|
|
count(*)
|
|
|
from
|
|
|
- orders o
|
|
|
+ orders
|
|
|
<where>
|
|
|
- o.supplier_id=#{userId}
|
|
|
+ supplier_id=#{userId}
|
|
|
<if test="orderId!=null">
|
|
|
- and o.order_id=#{orderId}
|
|
|
+ and order_id=#{orderId}
|
|
|
</if>
|
|
|
<if test="boxNo!=null and boxNo!=''">
|
|
|
- and o.box_no=#{boxNo}
|
|
|
+ and box_no=#{boxNo}
|
|
|
</if>
|
|
|
<if test="statusId!=null">
|
|
|
- and o.status_id=#{statusId}
|
|
|
+ and status_id=#{statusId}
|
|
|
</if>
|
|
|
<if test="startTime!=null and endTime!=null">
|
|
|
- and o.require_time between #{startTime} and #{endTime}
|
|
|
+ and require_time between #{startTime} and #{endTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
@@ -74,7 +74,7 @@
|
|
|
o.update_time,
|
|
|
s.status_name
|
|
|
from
|
|
|
- orders o
|
|
|
+ (select * from orders where status_id=2) o
|
|
|
left join
|
|
|
status s
|
|
|
on
|
|
@@ -102,20 +102,20 @@
|
|
|
select
|
|
|
count(*)
|
|
|
from
|
|
|
- orders
|
|
|
+ (select * from orders where status_id=2) o
|
|
|
<where>
|
|
|
- carrier_id=#{userId}
|
|
|
+ o.carrier_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>
|