Commit e96b7af5 authored by 吴春's avatar 吴春

修改老师详情

parent aa29398e
......@@ -720,6 +720,13 @@ namespace Mall.WebApi.Controllers.Education
demodel.TenantId = userInfo.TenantId;
demodel.MallBaseId = userInfo.MallBaseId;
var list = educationModule.GetCollectEducationGoodsPageList(pagelist.pageIndex, pagelist.pageSize, out long count, demodel);
foreach (var item in list)
{
if (!string.IsNullOrWhiteSpace(item.CourseLable))
{
item.CourseLableList = JsonConvert.DeserializeObject<List<string>>(item.CourseLable);
}
}
pagelist.count = Convert.ToInt32(count);
pagelist.pageData = list.Select(x => new
{
......@@ -727,7 +734,8 @@ namespace Mall.WebApi.Controllers.Education
x.Name,
x.CoverImage,
x.SellingPrice,
x.SalesNum
x.SalesNum,
x.CourseLableList
});
return ApiResult.Success("", pagelist);
......
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