guhongwei 3 gadi atpakaļ
vecāks
revīzija
49cd9485dd

+ 3 - 0
app/controller/patent/.patentwarning.js

@@ -5,6 +5,7 @@ module.exports = {
       "to_name",
       "patent_id",
       "patent_name",
+      "create_number",
       "content",
       "file_url",
       "is_read",
@@ -19,6 +20,7 @@ module.exports = {
     requestBody: [
       "to_id",
       "to_name",
+      "create_number",
       "patent_id",
       "patent_name",
       "content",
@@ -40,6 +42,7 @@ module.exports = {
         patent_id: "patent_id",
         patent_name: "patent_name",
         is_read: "is_read",
+        create_number: "create_number",
       },
       // options: {
       //   "meta.state": 0 // 默认条件

+ 2 - 0
app/model/patent/patentwarning.js

@@ -7,6 +7,7 @@ const { ObjectId } = require('mongoose').Types;
 const patentwarning = {
   to_id: { type: ObjectId }, // 接收人id
   to_name: { type: String }, // 接收人姓名
+  create_number: { type: String }, // 专利申请号
   patent_id: { type: ObjectId }, // 预警专利id
   patent_name: { type: String }, // 预警专利姓名
   content: { type: String }, // 预警信息
@@ -18,6 +19,7 @@ const schema = new Schema(patentwarning, { toJSON: { virtuals: true } });
 schema.index({ id: 1 });
 schema.index({ to_id: 1 });
 schema.index({ to_name: 1 });
+schema.index({ create_number: 1 });
 schema.index({ patent_id: 1 });
 schema.index({ patent_name: 1 });
 schema.index({ is_read: 1 });