@@ -54,7 +54,7 @@ func (l *BuyerListLogic) BuyerList(in *bxbuyer.BuyerListReq) (*bxbuyer.BuyerList
isBool = true
logx.Info("获取redis缓存,序列化异常")
} else {
- if len(list) >= int(in.PageSize*in.PageNum) {
+ if len(list) > 0 {
// 根据页码返回数据
start := in.PageSize * (in.PageNum - 1)
end := in.PageSize * in.PageNum
@@ -238,7 +238,10 @@ func BuyerListRedisCache(query string, in *bxbuyer.BuyerListReq) (buyerNames []s
redis.PutBytes("other", fmt.Sprintf(P_redis_key), &b, P_redis_time)
}
}(saveBuyerList)
+ } else {
+ return
+