...
|
...
|
@@ -39,10 +39,11 @@ func (srv PersonStatisticsService) IndexStatistics(cmd *command.IndexStatisticsC |
|
|
gatewayUser := allied_creation_user.NewHttplibAlliedCreationUser(
|
|
|
cmd.Operator)
|
|
|
users, err := gatewayUser.UserSearch(allied_creation_user.ReqUserSearch{
|
|
|
Limit: 1,
|
|
|
Offset: 0,
|
|
|
UserType: domain.UserTypeCooperation | domain.UserTypeEmployee,
|
|
|
UserBaseId: cmd.Operator.UserBaseId,
|
|
|
Limit: 1,
|
|
|
Offset: 0,
|
|
|
UserType: domain.UserTypeCooperation | domain.UserTypeEmployee,
|
|
|
UserBaseId: cmd.Operator.UserBaseId,
|
|
|
EnableStatus: domain.UserStatusEnable,
|
|
|
})
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
|
...
|
...
|
@@ -103,9 +104,10 @@ func (srv PersonStatisticsService) CompanyStatistics(cmd *command.CooperationPer |
|
|
gatewayUser := allied_creation_user.NewHttplibAlliedCreationUser(
|
|
|
cmd.Operator)
|
|
|
users, err := gatewayUser.UserSearch(allied_creation_user.ReqUserSearch{
|
|
|
Limit: 100,
|
|
|
Offset: 0,
|
|
|
UserBaseId: cmd.Operator.UserBaseId,
|
|
|
Limit: 100,
|
|
|
Offset: 0,
|
|
|
UserBaseId: cmd.Operator.UserBaseId,
|
|
|
EnableStatus: domain.UserStatusEnable,
|
|
|
//UserType: domain.UserTypeCooperation,
|
|
|
})
|
|
|
if err != nil {
|
...
|
...
|
|