소스 검색

Merge branch 'dev'

guhongwei 2 년 전
부모
커밋
e9e0aa3390
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      app/controller/system/config/.goodsTags.js
  2. 1 1
      app/controller/system/config/.platformAct.js
  3. 1 1
      app/service/system/platformAct.js

+ 1 - 1
app/controller/system/config/.goodsTags.js

@@ -35,7 +35,7 @@ module.exports = {
     options: {
       query: ['skip', 'limit'],
       sort: ['sort'],
-      desc: false,
+      desc: true,
       count: true,
     },
   },

+ 1 - 1
app/controller/system/config/.platformAct.js

@@ -33,7 +33,7 @@ module.exports = {
     service: 'query',
     options: {
       query: ['skip', 'limit'],
-      sort: ['meta.createdAt'],
+      sort: ['sort'],
       desc: true,
       count: true,
     },

+ 1 - 1
app/service/system/platformAct.js

@@ -19,7 +19,7 @@ class PlatformActService extends CrudService {
     const { populate } = this.getRefMods();
     // 带ref查询
     let rs = await this.model
-      .find(condition, projection, { skip, limit, sort: { sort: 1, 'meta.createdAt': -1 } })
+      .find(condition, projection, { skip, limit, sort: { sort: -1, 'meta.createdAt': -1 } })
       .populate(populate)
       .exec();
     rs = JSON.parse(JSON.stringify(rs));