作者 郑周

1. 修复 权限管理人员 分页BUG

... ... @@ -6,8 +6,8 @@ import "github.com/beego/beego/v2/core/validation"
type UserRoleQueryCommand struct {
CompanyId int64 `cname:"公司ID" json:"companyId"`
RoleId int64 `cname:"角色ID" json:"roleId,string" valid:"Required"`
PageNumber int64 `cname:"分页页码" json:"pageNumber"`
PageSize int64 `cname:"分页数量" json:"pageSize"`
PageNumber int `cname:"分页页码" json:"pageNumber"`
PageSize int `cname:"分页数量" json:"pageSize"`
}
func (in *UserRoleQueryCommand) Valid(validation *validation.Validation) {
... ...
... ... @@ -104,10 +104,7 @@ func (rs *RoleUserService) ListRole(in *command.UserRoleQueryCommand) (interface
}()
ruRepository := factory.CreateRoleUserRepository(map[string]interface{}{"transactionContext": transactionContext})
in.PageNumber = 1
in.PageSize = 9999999
tempList, err := ruRepository.FindAllContainUser(1, 10, in.CompanyId, in.RoleId)
tempList, err := ruRepository.FindAllContainUser(in.PageNumber, in.PageSize, in.CompanyId, in.RoleId)
if err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
... ...