廖井涛
2024-07-11 e55a701f5d4807a84eecc6aff5f69e35e9ee6af4
north-glass-erp/src/main/resources/mapper/pp/PatchLogMapper.xml
@@ -149,7 +149,7 @@
                 left join (select * from sd.order_glass_detail group by order_id,order_number) as ogd
                           on rw.order_id = ogd.order_id and dd.order_number = ogd.order_number
        where  dd.breakage_quantity-dd.quantity>0 and dd.available=0 and (dd.responsible_process=rw.this_process or (dd.quality_ins_status!=1))
        where  dd.breakage_quantity-dd.quantity>0 and dd.available=0 and (dd.responsible_process=rw.this_process or (dd.quality_ins_status!=1)) and rw.reviewed_state!=-1
        order by dd.id desc
    </select>