Merge branch 'xjjdev' into dev
This commit is contained in:
commit
5d3faa442c
@ -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),
|
||||||
@ -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
|
||||||
@ -237,23 +237,21 @@ 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,
|
||||||
Uids: artistUids,
|
Uids: artistUids, //直接搜会导致Count值不对,手动筛选
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
fmt.Println("\n artistUids:", artistUids, "\n")
|
|
||||||
fmt.Printf("\n\n artistList.Data: %+v\n\n", artistList.Data)
|
|
||||||
|
|
||||||
//查询这些画家审核通过的画作数据统计
|
//查询这些画家审核通过的画作数据统计
|
||||||
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: 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