guhongwei 3 years ago
parent
commit
81d7fe017f
2 changed files with 3 additions and 3 deletions
  1. 1 1
      app/controller/patent/.patentapply.js
  2. 2 2
      app/service/patent/patentapply.js

+ 1 - 1
app/controller/patent/.patentapply.js

@@ -82,6 +82,6 @@ module.exports = {
     },
   },
   check: {
-    requestBody: ["id", "status", "remark"],
+    requestBody: ["id", "status", "remark", "water_number"],
   },
 };

+ 2 - 2
app/service/patent/patentapply.js

@@ -24,8 +24,8 @@ class PatentapplyService extends CrudService {
    * @property status 交底书要改变成的状态
    * @property info 其他数据,当做多个备注,记录使用
    */
-  async check({ id, status, remark }) {
-    const data = { status };
+  async check({ id, status, remark, water_number }) {
+    const data = { status, water_number };
     await this.model.updateOne({ _id: ObjectId(id) }, data);
     // 换成对应的状态码,record在下面
     return await this.record({ id, method: status, remark });