|
@@ -58,7 +58,9 @@ func (l *BuyerListLogic) BuyerList(in *bxbuyer.BuyerListReq) (*bxbuyer.BuyerList
|
|
if isBool {
|
|
if isBool {
|
|
query, CountQuery = model.BuyerListRedisCacheQuery(in.PageNum, in.PageSize)
|
|
query, CountQuery = model.BuyerListRedisCacheQuery(in.PageNum, in.PageSize)
|
|
resp = model.GetBuyerList(query, CountQuery, in, true)
|
|
resp = model.GetBuyerList(query, CountQuery, in, true)
|
|
- model.SupplyBuyerListData(resp)
|
|
|
|
|
|
+ if len(resp.Data.List) > 0 {
|
|
|
|
+ model.SupplyBuyerListData(resp)
|
|
|
|
+ }
|
|
b, err := json.Marshal(resp.Data)
|
|
b, err := json.Marshal(resp.Data)
|
|
if err == nil {
|
|
if err == nil {
|
|
redis.PutBytes("other", fmt.Sprintf(model.P_redis_key, in.PageNum, in.PageSize), &b, model.P_redis_time)
|
|
redis.PutBytes("other", fmt.Sprintf(model.P_redis_key, in.PageNum, in.PageSize), &b, model.P_redis_time)
|