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