修复分页统计问题
This commit is contained in:
parent
02930a50be
commit
65847688d6
@ -211,7 +211,7 @@ func (a ArtistInfoArtworkLogic) GenerateArtworkSupplementInfo(request *artistInf
|
|||||||
|
|
||||||
func (a ArtistInfoArtworkLogic) ArtworkStatic(request *artistInfoArtwork.ArtistArtworkStaticRequest) (res *artistInfoArtwork.ArtistArtworkStaticResponse, err error) {
|
func (a ArtistInfoArtworkLogic) ArtworkStatic(request *artistInfoArtwork.ArtistArtworkStaticRequest) (res *artistInfoArtwork.ArtistArtworkStaticResponse, err error) {
|
||||||
//查询画家宝中认证成功的用户
|
//查询画家宝中认证成功的用户
|
||||||
userList, _, err := dao.GetViewUserList(&artistInfoUser.FindUsersRequest{
|
userList, total, err := dao.GetViewUserList(&artistInfoUser.FindUsersRequest{
|
||||||
// ArtistRealName: request.ArtistKeyWords,
|
// ArtistRealName: request.ArtistKeyWords,
|
||||||
Keyword: request.ArtistKeyWords,
|
Keyword: request.ArtistKeyWords,
|
||||||
Page: int32(request.Page),
|
Page: int32(request.Page),
|
||||||
@ -237,7 +237,7 @@ func (a ArtistInfoArtworkLogic) ArtworkStatic(request *artistInfoArtwork.ArtistA
|
|||||||
}
|
}
|
||||||
//查询匹配的画家数据列表
|
//查询匹配的画家数据列表
|
||||||
artistList, err := service.GrpcArtistImpl.ArtistList(context.Background(), &artist.ArtistListRequest{
|
artistList, err := service.GrpcArtistImpl.ArtistList(context.Background(), &artist.ArtistListRequest{
|
||||||
Keyword: request.ArtistKeyWords,
|
// Keyword: request.ArtistKeyWords,
|
||||||
Page: 1,
|
Page: 1,
|
||||||
PageSize: -1,
|
PageSize: -1,
|
||||||
Gender: gender,
|
Gender: gender,
|
||||||
@ -264,7 +264,7 @@ func (a ArtistInfoArtworkLogic) ArtworkStatic(request *artistInfoArtwork.ArtistA
|
|||||||
res = &artistInfoArtwork.ArtistArtworkStaticResponse{
|
res = &artistInfoArtwork.ArtistArtworkStaticResponse{
|
||||||
Page: int64(artistList.Page),
|
Page: int64(artistList.Page),
|
||||||
PageSize: int64(request.PageSize),
|
PageSize: int64(request.PageSize),
|
||||||
Total: int64(artistList.Count),
|
Total: total,
|
||||||
}
|
}
|
||||||
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