ruifeng_liu 3 年之前
父节点
当前提交
45e69c8dde
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/service/statistics/index.js

+ 2 - 1
app/service/statistics/index.js

@@ -404,7 +404,8 @@ class IndexService extends CrudService {
     const trans1 = await patentTrans.count({ type: '转让', user_id: id });
     const trans2 = await patentTrans.count({ type: '合作', user_id: id });
     const trans3 = await patentTrans.count({ type: '招商', user_id: id });
-    return { unread, apply, analysis, access, information, early, trans1, trans2, trans3 };
+    return {
+      message: { unread }, apply: { apply, analysis, access }, patent: { information, early }, transaction: { trans1, trans2, trans3 } };
   }
 
 }