Commit 0a29b1be by guanzhenshan

同上

parent 81b4e3bc
...@@ -67,7 +67,7 @@ namespace Bailun.DC.DailyPurchaseSellStock ...@@ -67,7 +67,7 @@ namespace Bailun.DC.DailyPurchaseSellStock
} }
var page = 1; var page = 1;
var pagesize = 5000; var pagesize = 3000;
//昨日库存 //昨日库存
...@@ -85,7 +85,7 @@ namespace Bailun.DC.DailyPurchaseSellStock ...@@ -85,7 +85,7 @@ namespace Bailun.DC.DailyPurchaseSellStock
//在库库存 //在库库存
page = 1; page = 1;
pagesize = 5000; pagesize = 3000;
sql = $@"select t1.bailun_sku,t1.warehouse_code,t2.warehouse_name,sum(t1.usable_stock+t1.occupy_stock) count,sum((t1.usable_stock+t1.occupy_stock)*t1.unit_price) as amount from dc_daily_stock t1 sql = $@"select t1.bailun_sku,t1.warehouse_code,t2.warehouse_name,sum(t1.usable_stock+t1.occupy_stock) count,sum((t1.usable_stock+t1.occupy_stock)*t1.unit_price) as amount from dc_daily_stock t1
left join dc_base_warehouse t2 on t1.warehouse_code=t2.warehouse_code left join dc_base_warehouse t2 on t1.warehouse_code=t2.warehouse_code
......
...@@ -136,7 +136,7 @@ namespace Bailun.DC.Web.Controllers ...@@ -136,7 +136,7 @@ namespace Bailun.DC.Web.Controllers
var total = 0; var total = 0;
var obj = new Services.OrdersServices().ListOrderPlatformSku(page, pagesize, start, end,platform,companyid, ref total); var obj = new Services.OrdersServices().ListOrderPlatformSku(page, pagesize, start, end,platform,companyid, ref total);
var listBailunSku = new Services.SkuInfoServices().GetBailunSkuByPlatformSku(obj.Select(a => a.platform_sku).ToList()); var _skuService = new Services.SkuInfoServices();
var list = obj.Select(a => new { var list = obj.Select(a => new {
a.origin_order_id, //平台订单号 a.origin_order_id, //平台订单号
...@@ -148,7 +148,7 @@ namespace Bailun.DC.Web.Controllers ...@@ -148,7 +148,7 @@ namespace Bailun.DC.Web.Controllers
a.platform_sku_unit_price, //单价 a.platform_sku_unit_price, //单价
a.item_id, //itemid a.item_id, //itemid
a.platform_sku, //平台sku a.platform_sku, //平台sku
bailunskus=listBailunSku.Where(b=>b.platform_sku==a.platform_sku).Select(c=>c.bailun_sku).ToList() bailunskus= _skuService.GetBailunSkuByPlatformSku(obj.Select(b => b.platform_sku).ToList(),a.platform_type)?.Select(c=>c.bailun_sku).ToList()
}); });
return Json(new 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