@@ -51,10 +51,12 @@ where t1.`update_time`>=@c_time
...
@@ -51,10 +51,12 @@ where t1.`update_time`>=@c_time
}
}
if(is_transfer)
if(is_transfer)
{
{
// 初始化数据才会进啦
sql+=" and t2.hq_type!='国内仓' ";
sql+=" and t2.hq_type!='国内仓' ";
sql+=" and not EXISTS ( select * from dc_average_warehouse as ta where t1.warehouse_code =ta.warehouse_code and t1.bailun_sku =ta.bailun_sku and (ta.transfer_delivery_empty>0 or ta.abroad_inbound_delivery_ocean>0 ) ) ";
}
}
sql+=" group by t1.bailun_sku,t1.warehouse_code ";
sql+=" group by t1.bailun_sku,t1.warehouse_code ";
//return _connection.Query<temp_sku_dto>("select t1.bailun_sku,t1.warehouse_code,t1.supplier_id from dc_base_purchase as t1 where t1.update_time>=@time group by t1.bailun_sku,t1.warehouse_code,t1.supplier_id ", parameters);
//return _connection.Query<temp_sku_dto>("select t1.bailun_sku,t1.warehouse_code,t1.supplier_id from dc_base_purchase as t1 where t1.update_time>=@time group by t1.bailun_sku,t1.warehouse_code,t1.supplier_id ", parameters);