|
@@ -383,11 +383,11 @@ class IndexService extends CrudService {
|
|
|
|
|
|
async patentUserIndex({ id }) {
|
|
async patentUserIndex({ id }) {
|
|
const patentExamine = this.ctx.model.Patent.Patentexamine;
|
|
const patentExamine = this.ctx.model.Patent.Patentexamine;
|
|
- const unread = await patentExamine.count({ id, is_read: false });
|
|
|
|
|
|
+ const unread = await patentExamine.count({ to: id, is_read: false });
|
|
|
|
|
|
|
|
|
|
const papply = this.ctx.model.Patent.Patentapply;
|
|
const papply = this.ctx.model.Patent.Patentapply;
|
|
- const apply = await papply.count({ status: [ '0', '1', '-1', '2' ], user_id: id });
|
|
|
|
|
|
+ const apply = await papply.count({ status: [ '0', '1', '-1', '-2' ], user_id: id });
|
|
const palysis = this.ctx.model.Patent.Patentanalysis;
|
|
const palysis = this.ctx.model.Patent.Patentanalysis;
|
|
const analysis = await palysis.count({ status: [ '0', '-1' ], user_id: id });
|
|
const analysis = await palysis.count({ status: [ '0', '-1' ], user_id: id });
|
|
const paccess = this.ctx.model.Patent.Patentassess;
|
|
const paccess = this.ctx.model.Patent.Patentassess;
|