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

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

@@ -395,9 +395,9 @@ class IndexService extends CrudService {
 
 
     const patentInfo = this.ctx.model.Patent.Patentinfo;
-    const information = await patentInfo.count({ user_id: [ id ] });
+    const information = await patentInfo.count({ user_id: [ ObjectId(id) ] });
     const patentEarly = this.ctx.model.Patent.Patentearly;
-    const early = await patentEarly.count({ user_id: [ id ] });
+    const early = await patentEarly.count({ user_id: [ ObjectId(id) ] });
 
 
     const patentTrans = this.ctx.model.Patent.Patenttrans;