guhongwei 3 năm trước cách đây
mục cha
commit
516fc9abea

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

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

+ 3 - 2
app/service/patent/patenttrans.js

@@ -18,10 +18,11 @@ class Patent_transService extends CrudService {
    * @param {body} body 参数
    * @property id 数据id
    * @property status 交底书要改变成的状态
+   * @property transfer_date 专利权转移时间
    * @property info 其他数据,当做多个备注,记录使用
    */
-  async check({ id, status, remark }) {
-    await this.model.updateOne({ _id: ObjectId(id) }, { status });
+  async check({ id, status, remark, transfer_date }) {
+    await this.model.updateOne({ _id: ObjectId(id) }, { status, transfer_date });
     // 换成对应的状态码,record在下面
     return await this.record({ id, method: status, remark });
   }