Commit b663b6ca authored by 吴春's avatar 吴春

提交代码

parent 5b9787b6
...@@ -856,6 +856,16 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -856,6 +856,16 @@ namespace Mall.WebApi.Controllers.TradePavilion
query.TenantId = userInfo?.TenantId ?? 0; query.TenantId = userInfo?.TenantId ?? 0;
var list = carrierModule.GetCarrierPageList(pageModel.pageIndex, pageModel.pageSize, out long count, query); var list = carrierModule.GetCarrierPageList(pageModel.pageIndex, pageModel.pageSize, out long count, query);
foreach (var item in list)
{
if (!string.IsNullOrWhiteSpace(item.Banner))
{
item.BannerList = JsonConvert.DeserializeObject<List<string>>(item.Banner);
}
else {
item.BannerList = new List<string>();
}
}
pageModel.count = Convert.ToInt32(count); pageModel.count = Convert.ToInt32(count);
pageModel.pageData = list.Select(x => new pageModel.pageData = list.Select(x => new
{ {
...@@ -877,7 +887,8 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -877,7 +887,8 @@ namespace Mall.WebApi.Controllers.TradePavilion
x.Location, x.Location,
x.Crowd, x.Crowd,
x.VideoUrl, x.VideoUrl,
x.CarrierMetroList x.CarrierMetroList,
x.BannerList
}); });
return ApiResult.Success(data: pageModel); return ApiResult.Success(data: pageModel);
} }
......
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