Browse Source

Merge pull request '修改bug' (#270) from feature_mps_2 into develop

Reviewed-on: http://101.201.121.115:3000/leo/LAPP_CHEERSSON_BACKEND/pulls/270
fix_errorReturn
yehongyang 3 years ago
parent
commit
a954697553
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      services/ap/implments/Balance.service.impl.go

+ 4
- 4
services/ap/implments/Balance.service.impl.go View File

@ -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


Loading…
Cancel
Save