|
@@ -115,7 +115,7 @@
|
|
|
and (two.id is null or two.order_status = 0)
|
|
and (two.id is null or two.order_status = 0)
|
|
|
</if>
|
|
</if>
|
|
|
<if test="param!=null and param.unExecuted == 1">
|
|
<if test="param!=null and param.unExecuted == 1">
|
|
|
- and two.order_status = 0
|
|
|
|
|
|
|
+ and truck.tms_status = 0 and two.order_status = 0
|
|
|
</if>
|
|
</if>
|
|
|
<if test="param!=null and param.unAllocated == 1">
|
|
<if test="param!=null and param.unAllocated == 1">
|
|
|
and two.id is null
|
|
and two.id is null
|
|
@@ -142,6 +142,15 @@
|
|
|
WHERE truck.org_id = #{orgId} and wo.id is null
|
|
WHERE truck.org_id = #{orgId} and wo.id is null
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
+ <!-- 查询未执行派单车辆 -->
|
|
|
|
|
+ <select id="getUnExecutedOrderTruckCount" resultType="java.lang.Integer">
|
|
|
|
|
+ SELECT count(DISTINCT truck.truck_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
|
|
|
|
|
+ group by truck.truck_id
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
<!-- 查询未派单车辆 -->
|
|
<!-- 查询未派单车辆 -->
|
|
|
<select id="getUnAllocatedTruckCount" resultType="java.lang.Integer">
|
|
<select id="getUnAllocatedTruckCount" resultType="java.lang.Integer">
|
|
|
SELECT count(1)
|
|
SELECT count(1)
|