作者 yangfu

统计修改

... ... @@ -37,9 +37,9 @@ 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,
Limit: 1,
Offset: 0,
//UserType: domain.UserTypeCooperation,
UserBaseId: cmd.Operator.UserBaseId,
})
if err != nil {
... ... @@ -91,7 +91,7 @@ func (srv PersonStatisticsService) CompanyStatistics(cmd *command.CooperationPer
Limit: 100,
Offset: 0,
UserBaseId: cmd.Operator.UserBaseId,
UserType: domain.UserTypeCooperation,
//UserType: domain.UserTypeCooperation,
})
if err != nil {
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
... ...
... ... @@ -7,3 +7,9 @@ type UserInfo struct {
UsersId int `json:"userId,string"`
UserCode string `json:"userCode"`
}
const c = 10128
func EncryptUserId(userId int64) int64 {
return userId + c
}
... ...
... ... @@ -227,7 +227,7 @@ func (gateway HttplibAlliedCreationUser) AuthRefreshIM(param ReqAuthRefreshIM) (
//RefreshIM 用户基础数据
func (gateway HttplibAlliedCreationUser) AuthUserBaseInfo(param ReqAuthUserBase) (*DataAuthUserBase, error) {
url := gateway.baseUrL + "/auth/user-base-info"
url := gateway.baseUrL + "/auth/user-info"
method := "POST"
req := gateway.CreateRequest(url, method)
log.Logger.Debug("向用户模块请求数据:用户基础数据。", map[string]interface{}{
... ...