Commit 5273c67e authored by 黄奎's avatar 黄奎
parents c0291848 a5c31ef4
...@@ -4191,6 +4191,14 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -4191,6 +4191,14 @@ namespace Mall.WebApi.Controllers.TradePavilion
}; };
var list = buildingCarrierModule.GetAllCarrierPageModule(pageModel.pageIndex, pageModel.pageSize, out long count, query); var list = buildingCarrierModule.GetAllCarrierPageModule(pageModel.pageIndex, pageModel.pageSize, out long count, query);
pageModel.count = Convert.ToInt32(count); pageModel.count = Convert.ToInt32(count);
foreach (var item in list)
{
item.BannerList = new List<string>();
if (!string.IsNullOrWhiteSpace(item.Logo))
{
item.BannerList.Add(item.Logo);
}
}
pageModel.pageData = list.Select(x => new pageModel.pageData = list.Select(x => new
{ {
x.ID, x.ID,
...@@ -4204,6 +4212,7 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -4204,6 +4212,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
x.CategoryName, x.CategoryName,
x.OpeningStatus, x.OpeningStatus,
x.Address, x.Address,
x.BannerList,
x.FirstStoreTest, x.FirstStoreTest,
}); });
return ApiResult.Success(data: pageModel); return ApiResult.Success(data: pageModel);
...@@ -4231,19 +4240,28 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -4231,19 +4240,28 @@ namespace Mall.WebApi.Controllers.TradePavilion
TenantId = parms.GetInt("TenantId", 0), TenantId = parms.GetInt("TenantId", 0),
}; };
var list = buildingCarrierModule.GetAllBrandEnterprisePageModule(pageModel.pageIndex, pageModel.pageSize, out long count, query); var list = buildingCarrierModule.GetAllBrandEnterprisePageModule(pageModel.pageIndex, pageModel.pageSize, out long count, query);
foreach (var item in list)
{
item.BannerList = new List<string>();
if (!string.IsNullOrWhiteSpace(item.Logo))
{
item.BannerList.Add(item.Logo);
}
}
pageModel.count = Convert.ToInt32(count); pageModel.count = Convert.ToInt32(count);
pageModel.pageData = list.Select(x => new pageModel.pageData = list.Select(x => new
{ {
x.ID, x.ID,
x.BrandName, x.BrandName,
Logo = x.Logo ?? "", Logo = x.Logo ?? "",
x.BannerList ,
x.TenantId, x.TenantId,
x.MallBaseId, x.MallBaseId,
x.FullBrandName, x.FullBrandName,
ProjectType = x.CategoryId, ProjectType = x.CategoryId,
ProjectTypeName = x.CategoryName, ProjectTypeName = x.CategoryName,
x.IsInChengdu, x.IsInChengdu,
}); }); ;
return ApiResult.Success(data: pageModel); return ApiResult.Success(data: pageModel);
} }
#endregion #endregion
......
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