Commit 19ceb1fe by lizefeng

以下两个供应商13点不出采购建议

深圳市龙岗区平湖欧妮菲制衣厂
深圳市福田区曼戈制衣厂
- 胡敏
parent 15b6449f
...@@ -423,6 +423,7 @@ where t2.`status`=2 and t1.bailun_sku = t2.bailun_sku and quantity_final_advise= ...@@ -423,6 +423,7 @@ where t2.`status`=2 and t1.bailun_sku = t2.bailun_sku and quantity_final_advise=
left join dc_mid_transit as t7 on t1.bailun_sku = t7.bailun_sku and t1.warehouse_code = t7.warehouse_code left join dc_mid_transit as t7 on t1.bailun_sku = t7.bailun_sku and t1.warehouse_code = t7.warehouse_code
left join ( select bailun_sku,sum(bailun_sku_quantity_ordered) as 'quantity' from dc_base_oms_sku where warehouse_code in ('BLGZ03') and website='us' and create_time>@time GROUP BY bailun_sku ) as t8 on t1.bailun_sku =t8.bailun_sku left join ( select bailun_sku,sum(bailun_sku_quantity_ordered) as 'quantity' from dc_base_oms_sku where warehouse_code in ('BLGZ03') and website='us' and create_time>@time GROUP BY bailun_sku ) as t8 on t1.bailun_sku =t8.bailun_sku
where t6.`status`=2 and ( t6.buyer_name in ('赵美聪') and t1.warehouse_code in ('BLGZ03') ) where t6.`status`=2 and ( t6.buyer_name in ('赵美聪') and t1.warehouse_code in ('BLGZ03') )
and t6.suppliers_name not in ('深圳市龙岗区平湖欧妮菲制衣厂','深圳市福田区曼戈制衣厂')
and ( t5.`status`=0 or t5.`status` is null ) and t8.quantity>0 and ( t5.`status`=0 or t5.`status` is null ) and t8.quantity>0
) ", new { main_id = mainID, time = last_date }, commandTimeout: 0); ) ", new { main_id = mainID, time = last_date }, commandTimeout: 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment