ソースを参照

feat:采购单位空搜索数量调整

fuwencai 2 年 前
コミット
245824bfee

+ 1 - 1
jyBXBuyer/rpc/internal/logic/buyerlistlogic.go

@@ -57,7 +57,7 @@ func (l *BuyerListLogic) BuyerList(in *bxbuyer.BuyerListReq) (*bxbuyer.BuyerList
 				if len(list) > 0 {
 					// 根据页码返回数据
 					start := in.PageSize * (in.PageNum - 1)
-					end := in.PageSize*in.PageNum + 1
+					end := in.PageSize * in.PageNum
 					count := len(list)
 					resp.Data.Count = int64(count)
 					if end > int64(len(list)-1) {

+ 1 - 1
jyBXBuyer/rpc/model/buyerListBYEs.go

@@ -241,7 +241,7 @@ func BuyerListRedisCache(query string, in *bxbuyer.BuyerListReq) (buyerNames []s
 	}
 	// 根据页码返回数据
 	start := in.PageSize * (in.PageNum - 1)
-	end := in.PageSize*in.PageNum + 1
+	end := in.PageSize * in.PageNum
 	resp.Data.Count = int64(len(saveBuyerList))
 	if end > int64(len(saveBuyerList)-1) {
 		end = int64(len(saveBuyerList) - 1)