正在显示
1 个修改的文件
包含
9 行增加
和
7 行删除
@@ -39,10 +39,11 @@ func (srv PersonStatisticsService) IndexStatistics(cmd *command.IndexStatisticsC | @@ -39,10 +39,11 @@ func (srv PersonStatisticsService) IndexStatistics(cmd *command.IndexStatisticsC | ||
39 | gatewayUser := allied_creation_user.NewHttplibAlliedCreationUser( | 39 | gatewayUser := allied_creation_user.NewHttplibAlliedCreationUser( |
40 | cmd.Operator) | 40 | cmd.Operator) |
41 | users, err := gatewayUser.UserSearch(allied_creation_user.ReqUserSearch{ | 41 | users, err := gatewayUser.UserSearch(allied_creation_user.ReqUserSearch{ |
42 | - Limit: 1, | ||
43 | - Offset: 0, | ||
44 | - UserType: domain.UserTypeCooperation | domain.UserTypeEmployee, | ||
45 | - UserBaseId: cmd.Operator.UserBaseId, | 42 | + Limit: 1, |
43 | + Offset: 0, | ||
44 | + UserType: domain.UserTypeCooperation | domain.UserTypeEmployee, | ||
45 | + UserBaseId: cmd.Operator.UserBaseId, | ||
46 | + EnableStatus: domain.UserStatusEnable, | ||
46 | }) | 47 | }) |
47 | if err != nil { | 48 | if err != nil { |
48 | return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) | 49 | return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) |
@@ -103,9 +104,10 @@ func (srv PersonStatisticsService) CompanyStatistics(cmd *command.CooperationPer | @@ -103,9 +104,10 @@ func (srv PersonStatisticsService) CompanyStatistics(cmd *command.CooperationPer | ||
103 | gatewayUser := allied_creation_user.NewHttplibAlliedCreationUser( | 104 | gatewayUser := allied_creation_user.NewHttplibAlliedCreationUser( |
104 | cmd.Operator) | 105 | cmd.Operator) |
105 | users, err := gatewayUser.UserSearch(allied_creation_user.ReqUserSearch{ | 106 | users, err := gatewayUser.UserSearch(allied_creation_user.ReqUserSearch{ |
106 | - Limit: 100, | ||
107 | - Offset: 0, | ||
108 | - UserBaseId: cmd.Operator.UserBaseId, | 107 | + Limit: 100, |
108 | + Offset: 0, | ||
109 | + UserBaseId: cmd.Operator.UserBaseId, | ||
110 | + EnableStatus: domain.UserStatusEnable, | ||
109 | //UserType: domain.UserTypeCooperation, | 111 | //UserType: domain.UserTypeCooperation, |
110 | }) | 112 | }) |
111 | if err != nil { | 113 | if err != nil { |
-
请 注册 或 登录 后发表评论