Commit 8359605c by guanzhenshan

增加帐号筛选功能

parent 0524812e
......@@ -22,14 +22,17 @@ namespace Bailun.DC.DailyPurchaseSellStock
{
var _services = new Services();
var start = DateTime.Parse("2020-09-25");
var start = DateTime.Parse("2020-09-30");
//_services.Init(start);
_services.Init(start);
return;
while (start.AddDays(1) < DateTime.Now)
{
Console.WriteLine(start);
_services.Init(start);
start = start.AddDays(1);
////Console.WriteLine(start);
////_services.Init(start);
////start = start.AddDays(1);
}
}
}
......
......@@ -6553,7 +6553,7 @@ namespace Bailun.DC.Services
#region 拦截订单
public List<mInterceptOrderItemid> ListInterceptOrderItemId(int page,int pagesize,DateTime? start, DateTime? end,ref int total,string platform)
public List<mInterceptOrderItemid> ListInterceptOrderItemId(int page,int pagesize,DateTime? start, DateTime? end,ref int total,string platform,int? accountid)
{
var sqlparam = new DynamicParameters();
......@@ -6576,6 +6576,12 @@ namespace Bailun.DC.Services
sqlparam.Add("platform", platform);
}
if(accountid.HasValue)
{
sql += " and bailun_account_id=@accountid";
sqlparam.Add("", accountid.Value);
}
//分页记录
//sql += " limit "+(page-1)*pagesize+","+pagesize;
......
......@@ -457,7 +457,7 @@ namespace Bailun.DC.Web.Controllers
/// <param name="platform">平台类型</param>
/// <returns></returns>
[HttpPost]
public JsonResult ListInterceptItemid(int page,DateTime? start, DateTime? end, string platform = "Aliexpress")
public JsonResult ListInterceptItemid(int page,DateTime? start, DateTime? end,int? accountid,string platform = "Aliexpress")
{
Services.ApiServices.SaveApiLog("Api/ListInterceptItemid", _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString());
var pagesize = 1000;
......@@ -465,7 +465,7 @@ namespace Bailun.DC.Web.Controllers
try
{
var obj = new Services.OrdersServices().ListInterceptOrderItemId(page, pagesize, start, end,ref total, platform);
var obj = new Services.OrdersServices().ListInterceptOrderItemId(page, pagesize, start, end,ref total, platform,accountid);
total = obj.Count;
return Json(new {
......
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