guhongwei 3 年之前
父節點
當前提交
a0edf81612
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      app/service/patent/patentapply.js

+ 3 - 1
app/service/patent/patentapply.js

@@ -96,7 +96,7 @@ class PatentapplyService extends CrudService {
   async toNotice(id, code) {
     const data = await this.model.findById(id);
     if (!data) return;
-    const { user_id, mech_id, admin_id, agentmech_id, name, apply_name, status } = data;
+    const { user_id, mech_id, agentmech_id, name, apply_name, status } = data;
     const arr = [];
     let content = '';
     let to = '';
@@ -111,6 +111,8 @@ class PatentapplyService extends CrudService {
         content = `${apply_name}重新提交了专利申请书【${name}】的申报,请及时前往专利申请管理进行处理`;
         if (status === '0') {
           to = mech_id;
+        } else if (status === '2' || status === '3') {
+          to = agentmech_id;
         }
         break;
       case '-1':