mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 17:23:26 +08:00
接口端【新增】:服务商品详情增加销售数量字段数据返回。
This commit is contained in:
@@ -5541,6 +5541,11 @@
|
||||
核销门店
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:CoreCms.Net.Model.Entities.CoreCmsServices.buyCount">
|
||||
<summary>
|
||||
销量
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:CoreCms.Net.Model.Entities.CoreCmsUserServicesOrder">
|
||||
<summary>
|
||||
服务购买表
|
||||
|
||||
@@ -46,5 +46,13 @@ namespace CoreCms.Net.Model.Entities
|
||||
[Display(Name = "核销门店")]
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<string> consumableStores { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 销量
|
||||
/// </summary>
|
||||
[Display(Name = "销量")]
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public int buyCount { get; set; } = 0;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -208,6 +208,8 @@ namespace CoreCms.Net.Web.WebApi.Controllers
|
||||
{
|
||||
serviceInfo.openStatus = (int)GlobalEnumVars.ServicesOpenStatus.haveExpired;
|
||||
}
|
||||
//数量(可自行获取状态,默认就是下了多少单计算多少。也方便刷量。)
|
||||
serviceInfo.buyCount = await _userServicesOrderServices.GetCountAsync(p => p.servicesId == entity.id);
|
||||
|
||||
jm.status = true;
|
||||
jm.data = serviceInfo;
|
||||
|
||||
Reference in New Issue
Block a user