zs 7 hónapja
szülő
commit
2736b7534e
1 módosított fájl, 4 hozzáadás és 4 törlés
  1. 4 4
      src/service/util.service.ts

+ 4 - 4
src/service/util.service.ts

@@ -1,11 +1,11 @@
 import { Inject, Provide, Config } from '@midwayjs/core';
-import { get, uniq, sumBy } from 'lodash';
+import { get, uniq } from 'lodash';
 import { Context } from '@midwayjs/koa';
 import { InjectEntityModel } from '@midwayjs/typeorm';
 import { ServiceError, ErrorCode } from '../error/service.error';
 import dayjs = require('dayjs');
 import { DictDataService } from './system/dictData.service';
-import { Equal, Repository, IsNull, Not } from 'typeorm';
+import { Equal, Repository, IsNull } from 'typeorm';
 import { Achievement } from '../entity/platform/achievement.entity';
 import { Company } from '../entity/users/company.entity';
 import { Supply } from '../entity/platform/supply.entity';
@@ -263,7 +263,7 @@ export class UtilService {
       list = [
         { name: '用户总数', data: [], percentage: 1 },
         { name: '未微信绑定', data: [], percentage: 1 },
-        { name: '已微信绑定', data: [], percentage: 1 },
+        { name: '未选所属产业', data: [], percentage: 1 },
         { name: '审核成功', data: [], percentage: 1 },
       ];
       for (const [index, val] of list.entries()) {
@@ -276,7 +276,7 @@ export class UtilService {
           val.data.push(count);
           val.percentage = await this.calculatePercentage(count, await this.userModel.count());
         } else if (index === 2) {
-          count = await this.userModel.count({ where: { openid: Not(null) } });
+          count = await this.userModel.count({ where: { industry: IsNull() } });
           val.data.push(count);
           val.percentage = await this.calculatePercentage(count, await this.userModel.count());
         } else {