|
|
@ -417,17 +417,17 @@ func (impl *BalanceServiceImplement) GetCustomerArticleDemand(user *global.User, |
|
|
|
|
|
|
|
} |
|
|
|
CustArtStockaLL.ItemLst = append(CustArtStockaLL.ItemLst, CustArtStockItem.ItemLst...) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
CustArtStockaLL.Count = len(CustArtStockaLL.ItemLst) |
|
|
|
pageSize = pageSize*10 |
|
|
|
start:= (pageNumber-1)*pageSize |
|
|
|
max := (pageNumber-1)*pageSize+pageSize-1 |
|
|
|
max := pageNumber*pageSize |
|
|
|
if start +1> CustArtStockaLL.Count{ |
|
|
|
start = CustArtStockaLL.Count - CustArtStockaLL.Count%pageSize |
|
|
|
} |
|
|
|
if max +1> CustArtStockaLL.Count{ |
|
|
|
max = CustArtStockaLL.Count -1 |
|
|
|
if max > CustArtStockaLL.Count{ |
|
|
|
max = CustArtStockaLL.Count |
|
|
|
} |
|
|
|
CustArtStockaLL.ItemLst = CustArtStockaLL.ItemLst[start:max] |
|
|
|
CustArtStockaLL.PageNumber = pageNumber |
|
|
|