Commit 7a194d64 by 泽锋 李

fix

parent 831bdef5
......@@ -51,10 +51,12 @@ where t1.`update_time`>=@c_time
}
if (is_transfer)
{
// 初始化数据才会进啦
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 ";
return _connection.Query<temp_sku_dto>(sql, parameters);
return _connection.Query<temp_sku_dto>(sql, parameters,commandTimeout:0);
//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);
......
......@@ -24,8 +24,8 @@ namespace AutoTurnOver.Purchase.AverageTarget
try
{
//report.ResetTransExpectArrivaltime();
//PurchaseAverageTargetServices.CalculationTransfer("948890401", 365);
}
//PurchaseAverageTargetServices.CalculationTransfer(days: (360 * 3), has_transfer: true);
}
catch (Exception ex)
{
throw;
......
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