Explorar o código

审核时传文件

guhongwei %!s(int64=3) %!d(string=hai) anos
pai
achega
157fe247fa
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/service/patent/patentsafeg.js

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

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