Commit dda2b5ff by guanzhenshan

调整物流往来统计报表服务

parent 2839ca42
...@@ -161,6 +161,11 @@ namespace Bailun.DC.AllotOrderDetail.Models ...@@ -161,6 +161,11 @@ namespace Bailun.DC.AllotOrderDetail.Models
/// </summary> /// </summary>
public List<string> ChannelName { get; set; } public List<string> ChannelName { get; set; }
/// <summary>
/// 完成时间
/// </summary>
public DateTime? CompletionDate { get; set; }
} }
public class AllotOrderProductItemOutputDto public class AllotOrderProductItemOutputDto
......
...@@ -91,5 +91,6 @@ namespace Bailun.DC.AllotOrderDetail.Models ...@@ -91,5 +91,6 @@ namespace Bailun.DC.AllotOrderDetail.Models
public DateTime dc_createtime { get; set; } public DateTime dc_createtime { get; set; }
public DateTime? finishtime { get; set; }
} }
} }
...@@ -7,22 +7,22 @@ namespace Bailun.DC.AllotOrderDetail ...@@ -7,22 +7,22 @@ namespace Bailun.DC.AllotOrderDetail
{ {
class Program class Program
{ {
static async Task Main(string[] args) //static async Task Main(string[] args)
{ //{
Console.WriteLine("启动服务 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); // Console.WriteLine("启动服务 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
var builder = new HostBuilder().ConfigureServices((hostContext, services) => // var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
{ // {
services.AddHostedService<Services>(); // services.AddHostedService<Services>();
}); // });
await builder.RunConsoleAsync(); // await builder.RunConsoleAsync();
} //}
//static void Main(string[] args) static void Main(string[] args)
//{ {
// var service = new Services(); var service = new Services();
// service.Init(); service.Init();
//} }
} }
} }
...@@ -74,6 +74,9 @@ namespace Bailun.DC.AllotOrderDetail ...@@ -74,6 +74,9 @@ namespace Bailun.DC.AllotOrderDetail
starttime = starttime.AddMinutes(-3); starttime = starttime.AddMinutes(-3);
var total = -1; var total = -1;
//测试
starttime = DateTime.Parse("2018-12-05");
while (total == -1 || total > ((page-1) * rows)) while (total == -1 || total > ((page-1) * rows))
{ {
total = 0; total = 0;
...@@ -176,6 +179,7 @@ namespace Bailun.DC.AllotOrderDetail ...@@ -176,6 +179,7 @@ namespace Bailun.DC.AllotOrderDetail
skuweight = 0, skuweight = 0,
skuweightStr = "", skuweightStr = "",
finishtime = item.CompletionDate
}; };
......
...@@ -56,7 +56,7 @@ namespace Bailun.DC.DailyLogisticSupplierTransaction ...@@ -56,7 +56,7 @@ namespace Bailun.DC.DailyLogisticSupplierTransaction
} }
} }
List<string> arrSanTong = new List<string> { "SPRING", "华得士国际货运代理有限公司", "DHL eCommerce (HK) Ltd", "Globavend", "华得士国际货运代理有限公司(中法)", "DHL ECOMMERCE", "中国邮政集团公司广州市分公司", "华得士国际货运代理有限公司(西班牙)", "华得士国际货运代理有限公司(意大利)", "VALUE ADD SERVICE LIMITED(D)", "金羊城国际物流代理有限公司(T)", "深圳大森林国际货运代理有限公司(T)", "深圳市乐递供应链有限公司(T)", "深圳昊泽货运代理有限公司(T)", "深圳市天纵供应商管理有限公司(T)", "中外运-敦豪广东分公司(T)", "优比速包裹运送(广东)有限公司(T)", "天地国际运输代理(中国)有限公司广州分公司(T)", "HK TWELVE INTERNATIONAL CO., LIMITED(T)", "香港宇通供应链科技有限公司", "深圳市天纵供应商管理有限公司", "香港杜斯塔克科技有限公司" }; List<string> arrSanTong = new List<string> { "SPRING", "华得士国际货运代理有限公司", "DHL eCommerce (HK) Ltd", "Globavend", "华得士国际货运代理有限公司(中法)", "DHL ECOMMERCE", "中国邮政集团公司广州市分公司", "华得士国际货运代理有限公司(西班牙)", "华得士国际货运代理有限公司(意大利)", "VALUE ADD SERVICE LIMITED(D)", "金羊城国际物流代理有限公司(T)", "深圳大森林国际货运代理有限公司(T)", "深圳市乐递供应链有限公司(T)", "深圳昊泽货运代理有限公司(T)", "深圳市天纵供应商管理有限公司(T)", "中外运-敦豪广东分公司(T)", "优比速包裹运送(广东)有限公司(T)", "天地国际运输代理(中国)有限公司广州分公司(T)", "HK TWELVE INTERNATIONAL CO., LIMITED(T)", "香港宇通供应链科技有限公司", "深圳市天纵供应商管理有限公司", "香港杜斯塔克科技有限公司", "深圳昊泽货运代理有限公司(T)" };
List<string> arrMidland = new List<string> { "Midlands Associates Ltd", "Midlands Associates Ltd(B)" }; List<string> arrMidland = new List<string> { "Midlands Associates Ltd", "Midlands Associates Ltd(B)" };
List<string> arrHuaYu = new List<string> { "橙联平台充值", "江苏天地华宇物联科技有限公司" }; List<string> arrHuaYu = new List<string> { "橙联平台充值", "江苏天地华宇物联科技有限公司" };
List<string> arrRongHeng = new List<string> { "深圳荣恒国际物流有限公司(美金)", "深圳荣恒国际物流有限公司(人民币)", "深圳荣恒国际物流有限公司" }; List<string> arrRongHeng = new List<string> { "深圳荣恒国际物流有限公司(美金)", "深圳荣恒国际物流有限公司(人民币)", "深圳荣恒国际物流有限公司" };
......
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