lrf 2 年之前
父节点
当前提交
b2977123d2
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 = [];