소스 검색

统计数据

panhui 2 년 전
부모
커밋
18260795b6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/users/users.service.ts

+ 2 - 2
src/users/users.service.ts

@@ -236,7 +236,7 @@ export class UsersService {
     public async getCount(apiUserId: number, roles?: Role, date?: string) {
         return await this.userRepository.count({
             where: {
-                apiUserId: apiUserId,
+                orgId: apiUserId,
                 roles: roles,
                 createdAt: date
                     ? And(MoreThanOrEqual(startOfDay(new Date(date))), LessThanOrEqual(endOfDay(new Date(date))))
@@ -263,7 +263,7 @@ export class UsersService {
 
     public async getUsers(apiUserId: number, roles?: Role) {
         let users = await this.userRepository.findBy({
-            apiUserId: apiUserId,
+            orgId: apiUserId,
             roles: roles
         })