Commit 8c44bbf8 by 泽锋 李

fix

parent a6b739b5
......@@ -22,7 +22,7 @@ namespace AutoGeneratePurchaseAdvise
try
{
//PurchaseAdviseServices.AutoPushBuySys(4);
//PurchaseAdviseServices.Generate($"早上的全量周转 {DateTime.Now.ToString("HH: mm")}", DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00")), is_clear_data: true);
}
catch (Exception ex)
......
......@@ -663,6 +663,10 @@ and quantity_init_advise<0 and t1.bailun_sku in @bailun_skus ", new {
}).ToList();
foreach (var groupItem in fbaDatas.GroupBy(s=>new { s.bailun_sku,s.area_id}))
{
if(groupItem.Key.bailun_sku== "N-S-BT")
{
}
var rDatas = redundancyList.Where(s => s.bailun_sku == groupItem.Key.bailun_sku && s.area_id == groupItem.Key.area_id).ToList();
if(rDatas!=null&& rDatas.Count >= 1)
{
......
......@@ -4899,7 +4899,7 @@ where t1.paid_time>=@btime and t1.paid_time<=@etime ";
var rows = 1000;
while (true)
{
var order_datas = _connection.Query<dc_base_oms_sku>($@" select paid_time,bailun_sku,warehouse_code,warehouse_name from dc_base_oms_sku_30 where platform_type='shopify' and warehouse_code='GZBLWH' and gmt_create>=@btime and gmt_create<=@etime limit {(page - 1) * rows},{rows} ", new
var order_datas = _connection.Query<dc_base_oms_sku>($@" select paid_time,bailun_sku,warehouse_code,warehouse_name from dc_base_oms_sku_30 where platform_type='shopify' and warehouse_code='GZBLWH' and gmt_modified>=@btime and gmt_modified<=@etime limit {(page - 1) * rows},{rows} ", new
{
btime = task_data.start_time,
etime = task_data.end_time
......
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