mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 18:03:27 +08:00
接口端【优化】:优化接口端提供给小程序显示的销量数据。
This commit is contained in:
@@ -583,7 +583,8 @@ namespace CoreCms.Net.Services
|
||||
good.brand = await _brandServices.QueryByIdAsync(good.brandId, true, true);
|
||||
|
||||
//取出销量
|
||||
good.buyCount = good.initialSales + await _orderItemServices.GetSumAsync(p => p.goodsId == good.id, o => o.nums, true);
|
||||
good.buyCount = good.initialSales + await _dal.QueryOneGoodSalesVolume(good.id);
|
||||
|
||||
return good;
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user