Commit 9f95dacb by guanzhenshan

调整平台sku销量接口

parent e80759b6
......@@ -4877,7 +4877,7 @@ namespace Bailun.DC.Services
public List<dc_base_oms_platform_sku> ListPlatformSkuCount(int page, int pagesize, DateTime? start, DateTime? end, string platform, int? companyid)
{
var sqlparam = new DynamicParameters();
var sql = "select platform_type,website,platform_sku_quantity_ordered,item_id,platform_sku from dc_base_oms_platform_sku where has_delete=0 and has_scalp=0 and bailun_order_status!='Canceled' ";
var sql = "select platform_type,website,sum(platform_sku_quantity_ordered) platform_sku_quantity_ordered,item_id,platform_sku from dc_base_oms_platform_sku where has_delete=0 and has_scalp=0 and bailun_order_status!='Canceled' ";
if (companyid.HasValue && companyid.Value > 0)
{
......
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