Commit 51ec0aa2 authored by 任国军's avatar 任国军

article add id desc

parent 7a55a9e0
Pipeline #19030 passed with stage
in 8 seconds
...@@ -680,7 +680,7 @@ class InstitutionSubService extends Service { ...@@ -680,7 +680,7 @@ class InstitutionSubService extends Service {
const offset = (page - 1) * limit; const offset = (page - 1) * limit;
const catId = Number(input.cat_id) || 0; const catId = Number(input.cat_id) || 0;
let catIds = []; let catIds = [];
const filter = { where: { status: 'online', is_deleted: 0 }, order: [[ 'sort', 'asc' ]], limit, offset }; const filter = { where: { status: 'online', is_deleted: 0 }, order: [[ 'sort', 'asc' ], [ 'id', 'desc' ]], limit, offset };
// 获取子分类 // 获取子分类
if (catId > 0) { if (catId > 0) {
......
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