guhongwei 3 år sedan
förälder
incheckning
eac9e1c787
2 ändrade filer med 10 tillägg och 0 borttagningar
  1. 6 0
      app/controller/patent/.patentapply.js
  2. 4 0
      app/model/patent/patentapply.js

+ 6 - 0
app/controller/patent/.patentapply.js

@@ -6,6 +6,8 @@ module.exports = {
       "is_mech",
       "mechanism_id",
       "mechanism_name",
+      "water_number",
+      "create_number",
       "name",
       "apply_name",
       "type",
@@ -29,6 +31,8 @@ module.exports = {
       "is_mech",
       "mechanism_id",
       "mechanism_name",
+      "water_number",
+      "create_number",
       "name",
       "apply_name",
       "type",
@@ -54,6 +58,8 @@ module.exports = {
         is_mech: "is_mech",
         mechanism_id: "mechanism_id",
         mechanism_name: "mechanism_name",
+        water_number: "water_number",
+        create_number: "create_number",
         name: "name",
         apply_name: "apply_name",
         type: "type",

+ 4 - 0
app/model/patent/patentapply.js

@@ -10,6 +10,8 @@ const patentapply = {
   is_mech: { type: String }, // 是否需要机构
   mechanism_id: { type: ObjectId }, // 机构id
   mechanism_name: { type: String }, // 机构名称
+  water_number: { type: String }, // 流水号
+  create_number: { type: String }, // 申请号
   name: { type: String }, // 发明名称
   apply_name: { type: String }, // 申请人
   type: { type: String }, // 申请类型
@@ -29,6 +31,8 @@ schema.index({ admin_id: 1 });
 schema.index({ is_mech: 1 });
 schema.index({ mechanism_id: 1 });
 schema.index({ mechanism_name: 1 });
+schema.index({ water_number: 1 });
+schema.index({ create_number: 1 });
 schema.index({ name: 1 });
 schema.index({ apply_name: 1 });
 schema.index({ status: 1 });