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

+ 1 - 0
app/controller/tecinfo/.patentnav.js

@@ -44,6 +44,7 @@ module.exports = {
         title: "title",
         publish_time: "publish_time",
         origin: "origin",
+        is_show:"is_show",
         "publish_time@start": "publish_time@start",
         "publish_time@end": "publish_time@end",
         "create_time@start": "create_time@start",

+ 1 - 0
app/model/patentnav.js

@@ -20,6 +20,7 @@ const schema = new Schema(patentnav, { toJSON: { virtuals: true } });
 schema.index({ id: 1 });
 schema.index({ title: 1 });
 schema.index({ publish_time: 1 });
+schema.index({ is_show: 1 });
 schema.index({ origin: 1 });
 schema.index({ 'meta.createdAt': 1 });
 schema.plugin(metaPlugin);