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

add sort

parent 1e2c2369
Pipeline #26864 passed with stage
in 15 seconds
...@@ -380,7 +380,7 @@ class OptionService extends Service { ...@@ -380,7 +380,7 @@ class OptionService extends Service {
async getActImageList() { async getActImageList() {
const { ctx } = this; const { ctx } = this;
const giftList = await ctx.classModel.CourseActImage.findAll({ where: { status: 1, is_deleted: 0 }, attributes: [ 'id', 'selected_image', 'unselected_image' ] }); const giftList = await ctx.classModel.CourseActImage.findAll({ where: { status: 1, is_deleted: 0 }, attributes: [ 'id', 'selected_image', 'unselected_image' ], order: [[ 'sort', 'asc' ]] });
const ret = { const ret = {
list: giftList, list: giftList,
}; };
......
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