|
@@ -146,7 +146,7 @@
|
|
|
<select id="getUnExecutedOrderTruckCount" resultType="java.lang.Integer">
|
|
<select id="getUnExecutedOrderTruckCount" resultType="java.lang.Integer">
|
|
|
SELECT count(1)
|
|
SELECT count(1)
|
|
|
FROM ( select id from truck left join tms_work_order wo on truck.truck_id = wo.truck_id and wo.order_status = 0
|
|
FROM ( select id from truck left join tms_work_order wo on truck.truck_id = wo.truck_id and wo.order_status = 0
|
|
|
- WHERE truck.org_id = #{orgId} and truck.tms_status = 0 and wo.id is not null
|
|
|
|
|
|
|
+ WHERE truck.org_id = #{orgId} and wo.id is not null
|
|
|
group by truck.truck_id ) tbl
|
|
group by truck.truck_id ) tbl
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|