...
|
...
|
@@ -246,20 +246,19 @@ func (c *PartnerInfoController) ListPartnerInfo() { |
|
|
}
|
|
|
partnertype, _ := strconv.Atoi(param.Partnertype)
|
|
|
if param.PageNumber == 0 {
|
|
|
param.PageNumber = 20
|
|
|
param.PageNumber = 1
|
|
|
}
|
|
|
if param.PageSize == 0 {
|
|
|
param.PageSize = 20
|
|
|
}
|
|
|
query := partnerQuery.ListPartnerInfoQuery{
|
|
|
Partnertype: partnertype,
|
|
|
PartnerName: param.PartnerName,
|
|
|
RegionInfo: param.Area,
|
|
|
Limit: param.PageNumber,
|
|
|
Limit: param.PageSize,
|
|
|
Offset: (param.PageNumber - 1) * param.PageSize,
|
|
|
}
|
|
|
|
|
|
if param.PageSize == 0 {
|
|
|
query.Offset = 0
|
|
|
} else {
|
|
|
query.Offset = (param.PageNumber - 1) * param.PageSize
|
|
|
}
|
|
|
newPartnerService := partnerInfoService.NewPartnerInfoService(nil)
|
|
|
count, partners, err := newPartnerService.ListPartnerInfo(&query)
|
|
|
if err != nil {
|
...
|
...
|
|