1、修复商品资料列表无法翻页的缺陷;
This commit is contained in:
parent
ab027172e6
commit
80a7835fd4
|
@ -510,7 +510,7 @@ func (m *ErpCommodityListReq) List() (*ErpCommodityListResp, error) {
|
||||||
|
|
||||||
// 计算分页所需的切片索引
|
// 计算分页所需的切片索引
|
||||||
startIndex := page * m.PageSize
|
startIndex := page * m.PageSize
|
||||||
if (len(commodities)/m.PageSize + 1) < startIndex {
|
if (len(commodities)/m.PageSize+1)*m.PageSize < startIndex {
|
||||||
startIndex = 0
|
startIndex = 0
|
||||||
page = 0
|
page = 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user