Commit 722ab9f9 by 泽锋 李

fix

parent a514d05e
......@@ -74,7 +74,7 @@ namespace AutoGeneratePurchaseAdvise
Console.WriteLine($"结束 检查周转任务状态 任务,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
}
if (now.Hour == 08 && now.Minute == 50)
if (now.Hour == 08 && now.Minute == 40)
{
Console.WriteLine($"开始 推送采购建议 任务,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
PurchaseAdviseServices.Generate(DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00")));
......
......@@ -39,7 +39,7 @@ namespace AutoGeneratePurchaseAdvise
//PurchaseAdviseServices.Generate(DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00")));
//report.PurchaseWeekBackUp();
//PurchaseAdviseServices.Generate(DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00")));
//PurchaseAdviseServices.Generate(DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00")));
PurchaseAdviseServices.Generate(DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00")));
}
catch (Exception ex)
{
......
......@@ -16,9 +16,9 @@
"Url": "http://saas.admin.bailuntec.com/Api/Ssoadmin/operationloginfo/addoperationloginfo",
"CanLog": "yes"
},
"Lms_GetLogistics": "http://lms.bailuntec.com/api/DataInfo/ApiLogistics/GetLogistics",
"Lms_GetLogistics": "http://10.0.8.36/api/DataInfo/ApiLogistics/GetLogistics",
"api_plat_category": "http://doc.bailuntec.com:6040/profitplatfee/getplatcategory",
"api_lms_order_transfer_sku": "http://lms.bailuntec.com/api/order/transfer/list",
"ApiLogisticsGetFilterLogisticsAssignLine": "http://lms.bailuntec.com/api/Logistics/ApiLogistics/GetFilterLogisticsAssignLine",
"api_lms_order_transfer_sku_avg": "http://lms.bailuntec.com/api/order/transfer/avglist"
"api_lms_order_transfer_sku": "http://10.0.8.36/api/order/transfer/list",
"ApiLogisticsGetFilterLogisticsAssignLine": "http://10.0.8.36/api/Logistics/ApiLogistics/GetFilterLogisticsAssignLine",
"api_lms_order_transfer_sku_avg": "http://10.0.8.36/api/order/transfer/avglist"
}
\ No newline at end of file
......@@ -44,14 +44,17 @@ namespace AutoTurnOver.DB
/// </summary>
public static void ReplaceLogistics(DateTime date,string bailun_sku = null,string warehouse_code = null)
{
Console.WriteLine("查询需要切换的数据");
// 查询需要切换的数据
List<replace_logistics_outofstock_dto> ouDatas = GetOutOfStock(bailun_sku, warehouse_code);
Console.WriteLine($" 查询需要切换的数据 :共:{ouDatas.Count} 条 ");
int count = 1;
// 寻找有没有满足条件的物流方案
foreach (var item in ouDatas)
{
try
{
Console.WriteLine($"要切换的数据:第{count}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")} ");
// 查询物流方案
var logisticsDatas = ApiUtility.GetFilterLogisticsAssignLineList(new Models.ApiDto.api_logistic_query_input_dto()
{
......@@ -112,6 +115,7 @@ namespace AutoTurnOver.DB
}
catch (Exception ex)
{
Console.WriteLine("查询需要切换的数据 : "+ex.Message );
_connection.Insert(new dc_task_error_log {
date =DateTime.Now,
message = item.ToJson() + " --- "+ex.Message,
......
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