|
@@ -382,6 +382,9 @@ class IndexService extends CrudService {
|
|
|
const patentExamine = this.ctx.model.Patent.Patentexamine;
|
|
|
// 未读消息
|
|
|
const unread = await patentExamine.count({ to: id, is_read: false });
|
|
|
+ // 通知信息
|
|
|
+ const patentNotice = this.ctx.model.Patent.Patentnotice;
|
|
|
+ const notice = await patentNotice.count({ to_id: id, to_type: '4', is_read: false });
|
|
|
// 专利申请
|
|
|
const papply = this.ctx.model.Patent.Patentapply;
|
|
|
const apply = await papply.count({
|
|
@@ -411,7 +414,7 @@ class IndexService extends CrudService {
|
|
|
const trans4 = await patentTrans.count({ type: '招商', user_id: id });
|
|
|
const trans5 = await patentTrans.count({ type: '质押', user_id: id });
|
|
|
return {
|
|
|
- message: { unread },
|
|
|
+ message: { unread, notice },
|
|
|
apply: { apply, analysis, access },
|
|
|
patent: { information, safeg, early },
|
|
|
transaction: { trans1, trans2, trans3, trans4, trans5 },
|