Commit 65e2c001 by 泽锋 李

fix

parent b51eaea3
......@@ -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 == 45)
if (now.Hour == 08 && now.Minute == 55)
{
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")));
......
......@@ -76,10 +76,15 @@ namespace AutoTurnOver.DB
//});
}
public static List<LmsShipLogisticsDto> RealTimeShipLogisticsList()
public static List<LmsShipLogisticsDto> RealTimeShipLogisticsList(LmsShipLogisticsRequstDto requstData = null)
{
string url = ConfigHelper.GetValue("Lms_GetLogistics");
string resultStr = HttpHelper.Request(url, RequestType.GET, "", timeout: 1000 * 60 * 60 * 24);
var parameters = $"";
if (requstData != null)
{
parameters = $"?RecordStatus={requstData.RecordStatus}&startPoint={requstData.startPoint}&platform={requstData.platform}&Line_Code={requstData.Line_Code}&country_code={requstData.country_code}&character_skus={requstData.character_skus}";
}
string resultStr = HttpHelper.Request(url+ parameters, RequestType.GET, "", timeout: 1000 * 60 * 60 * 24);
var result = resultStr.ToObj<LmsResultDto<List<LmsShipLogisticsDto>>>();
if (result == null)
{
......
......@@ -57,10 +57,9 @@ namespace AutoTurnOver.DB
Console.WriteLine($"要切换的数据:第{count}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")} ");
count++;
// 查询物流方案
var logisticsDatas = ApiUtility.GetFilterLogisticsAssignLineList(new Models.ApiDto.api_logistic_query_input_dto()
{
var logisticsDatas = ApiUtility.RealTimeShipLogisticsList(new Models.ApiDto.LmsShipLogisticsRequstDto {
endCountries = item.country_code,
lms_character_skus = item.bailun_sku,
character_skus = item.bailun_sku,
startPoint = "3"
});
......
......@@ -32,4 +32,12 @@ namespace AutoTurnOver.Models.ApiDto
public T Data { get; set; }
}
public class LmsShipLogisticsRequstDto
{
public string RecordStatus { get; set; } = ""; public string startPoint { get; set; } = ""; public string platform { get; set; } = ""; public string Line_Code { get; set; } = "";
public string country_code { get; set; } = "";
public string endCountries { get; set; } = "";
public string character_skus { get; set; } = "";
}
}
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