1、修复商品资料列表无法翻页的缺陷;

This commit is contained in:
chenlin 2024-09-26 17:07:01 +08:00
parent ab027172e6
commit 80a7835fd4

View File

@ -510,7 +510,7 @@ func (m *ErpCommodityListReq) List() (*ErpCommodityListResp, error) {
// 计算分页所需的切片索引
startIndex := page * m.PageSize
if (len(commodities)/m.PageSize + 1) < startIndex {
if (len(commodities)/m.PageSize+1)*m.PageSize < startIndex {
startIndex = 0
page = 0
}