lrf 2 years ago
parent
commit
b2977123d2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/service/view/goods.js

+ 2 - 2
app/service/view/goods.js

@@ -109,9 +109,9 @@ class GoodsService extends CrudService {
   }
 
   async indexActTagsGoods() {
-    const dictData = await this.ctx.model.Dev.DictData.find({ code: 'act_tags' });
+    const list = await this.ctx.model.System.ActTags.find({ status: '0' }).sort({ sort: 1 });
     const result = [];
-    for (const t of dictData) {
+    for (const t of list) {
       const { label, value } = t;
       const list = await this.searchActTagsGoods(value);
       const arr = [];