作者 yangfu

天联共创个人用户首页统计修改

@@ -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 {