lrf402788946 4 years ago
parent
commit
5ab0c6108d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/service/statistics.js

+ 2 - 1
app/service/statistics.js

@@ -140,7 +140,6 @@ class IndexService extends CrudService {
       { label: '订单入库', value: '3' },
       { label: '信息资料审查失败', value: '-3' },
       { label: '高企认证成功', value: '4' },
-      { label: '创新券成功发放', value: '5' },
     ];
     const res = await this.ctx.model.Ticket.aggregate([
       { $group: {
@@ -160,10 +159,12 @@ class IndexService extends CrudService {
     const tcount = await this.ctx.model.Ticket.count();
     const jldx = await this.ctx.model.Policy.count({ type: '奖励兑现' });
     const yfbt = await this.ctx.model.Policy.count({ type: '研发补贴' });
+    const ticket = await this.ctx.model.Policy.count({ type: '创新券' });
     const arr = [];
     arr.push({ name: '高企认定', value: tcount });
     arr.push({ name: '奖励兑现', value: jldx });
     arr.push({ name: '研发补贴', value: yfbt });
+    arr.push({ name: '创新券', value: ticket });
     return { ticket: data, policy: arr };
   }