|
@@ -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':
|