|
@@ -14,7 +14,7 @@
|
|
|
COUNT(DISTINCT a.id) AS 'all'
|
|
|
from pg_order_base a
|
|
|
left join pg_order_worker b on a.id = b.order_base_id
|
|
|
- where (b.worker_id=#{workerId} or b.worker_number=#{workerNumber}) or a.order_status = 'DQD') and a.order_status!='YQX'
|
|
|
+ where ((b.worker_id=#{workerId} or b.worker_number=#{workerNumber}) or a.order_status = 'DQD') and a.order_status!='YQX'
|
|
|
<if test="isYb != null and isYb == true">
|
|
|
and a.pg_incre_order_id != ''
|
|
|
</if>
|