guhongwei 3 jaren geleden
bovenliggende
commit
2c1237a6f0
2 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  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 => {