Commit eadeb094 authored by 任国军's avatar 任国军

classList add institution_logo

parent 2a6daf84
Pipeline #21968 passed with stage
in 14 seconds
...@@ -61,7 +61,7 @@ class InstitutionSubService extends Service { ...@@ -61,7 +61,7 @@ class InstitutionSubService extends Service {
categoryList = _.groupBy(categoryList, 'id'); categoryList = _.groupBy(categoryList, 'id');
// 获取机构 // 获取机构
let institutionList = await ctx.classModel.V5.CourseV5Institution.findAll({ where: { id: { $in: R.pluck('institution_id', classList.rows) } }, attributes: [ 'id', 'name' ] }); let institutionList = await ctx.classModel.V5.CourseV5Institution.findAll({ where: { id: { $in: R.pluck('institution_id', classList.rows) } }, attributes: [ 'id', 'name', 'logo' ] });
institutionList = _.groupBy(institutionList, 'id'); institutionList = _.groupBy(institutionList, 'id');
for (const i in classList.rows) { for (const i in classList.rows) {
......
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