Commit ae9d5065 by 泽锋 李

重新抓取调拨单当前节点

parent 2c53f93f
......@@ -1600,6 +1600,8 @@ left join dc_base_warehouse as t2 on t1.warehouse_code = t2.warehouse_code
}
return obj;
}
}
......
......@@ -87,7 +87,7 @@ where t1.stateid!=5 and t1.isdeleted=0 and t2.deliverycount>t2.storagecount").To
/// </summary>
public static void SynchroLmsTransferOrder()
{
var task_name = "SynchroLmsTransferOrder_v1";
var task_name = "SynchroLmsTransferOrder_v2";
var conn = _connection;
// 查询最后一次成功抓取的记录
var last_task_synchro_log = conn.QuerySingleOrDefault<task_synchro_log>(" select * from task_synchro_log where task_name=@task_name and status=1 order by end_time desc limit 1 ", new { task_name = task_name });
......@@ -130,13 +130,16 @@ where t1.stateid!=5 and t1.isdeleted=0 and t2.deliverycount>t2.storagecount").To
{
box_id = item.box_id??"",
data_id = item.data_id,
sku = item.sku??"",
node_date =item.node_date,
lms_update_date = item.update_date,
node_name = item.node_name??"",
sign_exe =item.sign_exe,
system_order_no =item.system_order_no,
trackingno = item.trackingno??"",
transfer_no = item.transfer_no??""
transfer_no = item.transfer_no??"",
logistics_code = item.logistics_code ?? "",
logistics_name = item.logistics_name ?? ""
};
db_data.id = MyMySqlConnection._connection.QueryFirstOrDefault<int?>(" select id from dc_lms_order_transfer_current_node where `data_id`=@data_id and box_id=@box_id ", new
......
......@@ -13,6 +13,9 @@ namespace AutoTurnOver.Models.ApiDto
public DateTime update_date { get; set; }
public DateTime node_date { get; set; }
public string node_name { get; set; }
public string logistics_code { get; set; }
public string logistics_name { get; set; }
public string sku { get; set; }
/// <summary>
/// 调拨单号
/// </summary>
......
......@@ -18,6 +18,9 @@ namespace AutoTurnOver.Models
public string transfer_no { get; set; }
public string trackingno { get; set; }
public string box_id { get; set; }
public string logistics_code { get; set; }
public string logistics_name { get; set; }
public string sku { get; set; }
public int sign_exe { get; set; }
}
}
......@@ -34,6 +34,6 @@
"order": "http://mjzz.bailuntec.com/api/ApiOrderList"
},
"lms-sys": {
"transfer-node": "http://lms.bailuntec.com/api/order/transfer/ApiOrderTransferCurrentNode"
"transfer-node": "http://lms.bailuntec.com/api/order/transfer/ApiOrderTransferSkuCurrentNode"
}
}
......@@ -35,6 +35,6 @@
"order": "http://mjzz.bailuntec.com/api/ApiOrderList"
},
"lms-sys": {
"transfer-node": "http://lms.bailuntec.com/api/order/transfer/ApiOrderTransferCurrentNode"
"transfer-node": "http://lms.bailuntec.com/api/order/transfer/ApiOrderTransferSkuCurrentNode"
}
}
......@@ -34,6 +34,6 @@
"order": "http://mjzz.bailuntec.com/api/ApiOrderList"
},
"lms-sys": {
"transfer-node": "http://lms.bailuntec.com/api/order/transfer/ApiOrderTransferCurrentNode"
"transfer-node": "http://lms.bailuntec.com/api/order/transfer/ApiOrderTransferSkuCurrentNode"
}
}
\ No newline at end of file
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