|
|
@@ -171,7 +171,7 @@
|
|
|
select * from tms_work_order wo where 40 > wo.order_status
|
|
|
order by order_status desc, plan_reach_time asc
|
|
|
) two on truck.truck_id = two.truck_id
|
|
|
- WHERE truck.org_id = #{param.orgId} and wo.id is null
|
|
|
+ WHERE truck.org_id = #{param.orgId} and two.id is null
|
|
|
<if test="param!=null and param.deptId!=null">
|
|
|
and truck.dept_id = #{param.deptId}
|
|
|
</if>
|