|
@@ -382,25 +382,25 @@ class IndexService extends CrudService {
|
|
|
}
|
|
|
|
|
|
async patentUserIndex({ id }) {
|
|
|
- const patentExamine = this.ctx.service.patent.patentexamine;
|
|
|
+ const patentExamine = this.ctx.model.Patent.Patentexamine;
|
|
|
const unread = await patentExamine.count({ id, is_read: false });
|
|
|
|
|
|
|
|
|
- const papply = this.ctx.patent.patentapply;
|
|
|
+ const papply = this.ctx.model.Patent.Patentapply;
|
|
|
const apply = await papply.count({ status: [ '0', '1', '-1', '2' ], user_id: id });
|
|
|
- const palysis = this.ctx.patent.patentanalysis;
|
|
|
+ const palysis = this.ctx.model.Patent.Patentanalysis;
|
|
|
const analysis = await palysis.count({ status: [ '0', '-1' ], user_id: id });
|
|
|
- const paccess = this.ctx.patent.patentassess;
|
|
|
+ const paccess = this.ctx.model.Patent.Patentassess;
|
|
|
const access = await paccess.count({ status: [ '0', '-1' ], user_id: id });
|
|
|
|
|
|
|
|
|
- const patentInfo = this.ctx.patent.patentinfo;
|
|
|
+ const patentInfo = this.ctx.model.Patent.Patentinfo;
|
|
|
const information = await patentInfo.count({ user_id: [ id ] });
|
|
|
- const patentEarly = this.ctx.patent.patentearly;
|
|
|
+ const patentEarly = this.ctx.model.Patent.Patentearly;
|
|
|
const early = await patentEarly.count({ user_id: [ id ] });
|
|
|
|
|
|
|
|
|
- const patentTrans = this.ctx.patent.patenttrans;
|
|
|
+ const patentTrans = this.ctx.model.Patent.Patenttrans;
|
|
|
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 });
|