|
|
@@ -305,8 +305,8 @@ public class PtBagServiceImpl implements IPtBagService {
|
|
|
queryWrapper.select(PtBag::getBalance,PtBag::getUserId);
|
|
|
List<PtBagVo> listVo = baseMapper.selectVoList(queryWrapper);
|
|
|
BigDecimal amount = BigDecimal.ZERO;
|
|
|
- for (int i = 0,j=listVo.size(); i < j; i++) {
|
|
|
- amount = amount.add(listVo.get(i).getBalance());
|
|
|
+ for (PtBagVo ptBagVo : listVo) {
|
|
|
+ amount = amount.add(ptBagVo.getBalance());
|
|
|
}
|
|
|
return amount;
|
|
|
}
|