修复画家查询时total值错误的问题
This commit is contained in:
parent
e29f86fa8c
commit
02930a50be
@ -241,13 +241,24 @@ func (a ArtistInfoArtworkLogic) ArtworkStatic(request *artistInfoArtwork.ArtistA
|
|||||||
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")
|
//手动筛选uid
|
||||||
fmt.Printf("\n\n artistList.Data: %+v\n\n", artistList.Data)
|
var datas []*artist.ProfileRequest
|
||||||
|
for i, v := range artistList.Data {
|
||||||
|
if len(datas) == len(artistUids) {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
for _, uid := range artistUids {
|
||||||
|
if uid == v.Uid {
|
||||||
|
datas = append(datas, artistList.Data[i])
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//查询这些画家审核通过的画作数据统计
|
//查询这些画家审核通过的画作数据统计
|
||||||
res = &artistInfoArtwork.ArtistArtworkStaticResponse{
|
res = &artistInfoArtwork.ArtistArtworkStaticResponse{
|
||||||
|
Loading…
Reference in New Issue
Block a user