guhongwei 3 years ago
parent
commit
4eb0bd0c46
2 changed files with 16 additions and 1 deletions
  1. 10 1
      app/controller/patent/.patenttrans.js
  2. 6 0
      app/model/patent/patenttrans.js

+ 10 - 1
app/controller/patent/.patenttrans.js

@@ -16,6 +16,9 @@ module.exports = {
       "requirementdesc",
       "expect",
       "present",
+      "on_obligee",
+      "on_afterobligee",
+      "transfer_date",
       "condition",
       "is_contract",
       "contract",
@@ -45,6 +48,9 @@ module.exports = {
       "requirementdesc",
       "expect",
       "present",
+      "on_obligee",
+      "on_afterobligee",
+      "transfer_date",
       "condition",
       "is_contract",
       "contract",
@@ -63,7 +69,7 @@ module.exports = {
     parameters: {
       query: {
         user_id: "user_id",
-        admin_id:"admin_id",
+        admin_id: "admin_id",
         patent_id: "patent_id",
         create_number: "create_number",
         patent_name: "patent_name",
@@ -73,6 +79,9 @@ module.exports = {
         budget: "budget",
         is_report: "is_report",
         type: "type",
+        on_obligee: "%on_obligee%",
+        on_afterobligee: "%on_afterobligee%",
+        transfer_date: "%transfer_date%",
         status: "status",
         isdel: "isdel",
         "create_time@start": "create_time@start",

+ 6 - 0
app/model/patent/patenttrans.js

@@ -20,6 +20,9 @@ const patenttrans = {
   requirementdesc: { type: String }, // 技术说明
   expect: { type: String }, // 预期目标
   present: { type: String }, // 需求现状
+  on_obligee: { type: String }, // 变更前专利权人
+  on_afterobligee: { type: String }, // 变更后专利权人
+  transfer_date: { type: String }, // 专利权转移日期
   condition: { type: String }, // 合作条件及要求
   is_contract: { type: String }, // 0:线下合同,1:线上合同
   contract: { type: Object }, // 线上合同
@@ -41,6 +44,9 @@ schema.index({ phone: 1 });
 schema.index({ email: 1 });
 schema.index({ budget: 1 });
 schema.index({ type: 1 });
+schema.index({ on_obligee: 1 });
+schema.index({ transfer_date: 1 });
+schema.index({ transfer_date: 1 });
 schema.index({ is_report: 1 });
 schema.index({ status: 1 });
 schema.index({ isdel: 1 });