guhongwei 3 年之前
父节点
当前提交
2c1237a6f0
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      app/controller/patent/.patentinfo.js
  2. 1 0
      app/model/patent/patentinfo.js

+ 1 - 0
app/controller/patent/.patentinfo.js

@@ -100,6 +100,7 @@ module.exports = {
         status: "status",
         trans_status: "trans_status",
         user_id: "user_id",
+        lose_date: "lose_date",
       },
     },
     service: "query",

+ 1 - 0
app/model/patent/patentinfo.js

@@ -49,6 +49,7 @@ schema.index({ term: 1 });
 schema.index({ type: 1 });
 schema.index({ status: 1 });
 schema.index({ trans_status: 1 });
+schema.index({ lose_date: 1 });
 schema.index({ 'meta.createdAt': 1 });
 schema.plugin(metaPlugin);
 module.exports = app => {