@@ -519,7 +519,7 @@ and not exists ( select * from dc_auto_shortage_push_not_config where dc_auto_sh
{
sql+=$" and not exists ( select * from dc_auto_shortage_push where dc_auto_shortage_push.warehouse_code = t1.warehouse_code and dc_auto_shortage_push.bailun_sku = t1.bailun_sku and dc_auto_shortage_push.`type`=1 and dc_auto_shortage_push.platform='{platform}' and dc_auto_shortage_push.has_return_goods=0 ) ";
// 增量推,要剔除全量推的数据
sql+=" and ( t_full_push.status is null or t_full_push.status=0 ) ";
//sql += " and ( t_full_push.status is null or t_full_push.status=0 ) ";
}
else
{
...
...
@@ -577,7 +577,7 @@ and not exists ( select * from dc_auto_shortage_push_not_config where dc_auto_sh
{
no_library_sql+=$" and not exists ( select * from dc_auto_shortage_push where dc_auto_shortage_push.warehouse_code = t1.warehouse_code and dc_auto_shortage_push.bailun_sku = t1.bailun_sku and dc_auto_shortage_push.`type`=2 and dc_auto_shortage_push.platform='{platform}' and dc_auto_shortage_push.has_return_goods=0 ) ";
// 增量推,要剔除全量推的数据
no_library_sql+=" and ( t_full_push.status is null or t_full_push.status=0 ) ";
//no_library_sql += " and ( t_full_push.status is null or t_full_push.status=0 ) ";
}
else
{
...
...
@@ -744,7 +744,7 @@ and ( ifnull(t6.usable_stock,0)<ifnull(t7.quantity_unshipped,0) ) -- 有缺货
{
sql+=$" and not exists ( select * from dc_auto_shortage_push where dc_auto_shortage_push.warehouse_code = t1.warehouse_code and dc_auto_shortage_push.bailun_sku = t1.bailun_sku and dc_auto_shortage_push.`type`=1 and dc_auto_shortage_push.platform='{platform}' and dc_auto_shortage_push.has_return_goods=0 ) ";
// 增量推,要剔除全量推的数据
sql+=" and ( t_full_push.status is null or t_full_push.status=0 ) ";
//sql += " and ( t_full_push.status is null or t_full_push.status=0 ) ";
}
else
{
...
...
@@ -788,7 +788,7 @@ and not exists ( select * from dc_auto_shortage_push_not_config where dc_auto_sh
{
no_library_sql+=$" and not exists ( select * from dc_auto_shortage_push where dc_auto_shortage_push.warehouse_code = t1.warehouse_code and dc_auto_shortage_push.bailun_sku = t1.bailun_sku and dc_auto_shortage_push.`type`=2 and dc_auto_shortage_push.platform='{platform}' and dc_auto_shortage_push.has_return_goods=0 ) ";
// 增量推,要剔除全量推的数据
no_library_sql+=" and ( t_full_push.status is null or t_full_push.status=0 ) ";
//no_library_sql += " and ( t_full_push.status is null or t_full_push.status=0 ) ";