Commit 583dd348 authored by liudong1993's avatar liudong1993

分销订单分组

parent 32096aff
......@@ -118,5 +118,7 @@ namespace Mall.Model.Entity.Product
get;
set;
}
public int? IsRemit { get; set; }
}
}
......@@ -162,5 +162,10 @@ namespace Mall.Model.Entity.User
/// 财务单据id
/// </summary>
public int? FinanceId { get; set; }
/// <summary>
/// 提现关联订单id
/// </summary>
public string ReOrderIds { get; set; }
}
}
......@@ -467,7 +467,7 @@ GROUP BY o.OrderId)t";
/// <returns></returns>
public List<RB_Goods_Order_Extend> GetUserOrderNumAndMoney(string userIds, int tenantId, int mallBaseId)
{
string sql = $@"SELECT UserId,SUM(Income) as Income,count(0) as OrderNum FROM rb_goods_order WHERE OrderStatus in (2,3,4,5,6) and Recycled=2 and UserId in({userIds}) and TenantId={tenantId} and MallBaseId={mallBaseId}";
string sql = $@"SELECT UserId,SUM(Income) as Income,count(0) as OrderNum FROM rb_goods_order WHERE OrderStatus in (2,3,4,5,6) and Recycled=2 and UserId in({userIds}) and TenantId={tenantId} and MallBaseId={mallBaseId} GROUP BY UserId";
return Get<RB_Goods_Order_Extend>(sql).ToList();
}
......
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