修复分页值返回错误的问题
This commit is contained in:
parent
2d9f9dbb95
commit
e29f86fa8c
@ -221,7 +221,7 @@ func (a ArtistInfoArtworkLogic) ArtworkStatic(request *artistInfoArtwork.ArtistA
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if userList == nil || len(userList) == 0 {
|
||||
if len(userList) == 0 {
|
||||
return nil, nil
|
||||
}
|
||||
var artistUids []string
|
||||
@ -251,9 +251,9 @@ func (a ArtistInfoArtworkLogic) ArtworkStatic(request *artistInfoArtwork.ArtistA
|
||||
|
||||
//查询这些画家审核通过的画作数据统计
|
||||
res = &artistInfoArtwork.ArtistArtworkStaticResponse{
|
||||
Page: int64(artistList.Count),
|
||||
PageSize: int64(artistList.Page),
|
||||
Total: request.PageSize,
|
||||
Page: int64(artistList.Page),
|
||||
PageSize: int64(request.PageSize),
|
||||
Total: int64(artistList.Count),
|
||||
}
|
||||
viewDatas, err := dao.PassedArtworkStatic(request, artistUids)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user