| | |
| | | PositionVO positionVO = this.iUserPositionService.findUserPositionAllProfitAndLose(user.getId()); |
| | | userInfoVO.setAllFreezAmt(positionVO.getAllFreezAmt()); |
| | | BigDecimal allProfitAndLose = positionVO.getAllProfitAndLose(); |
| | | userInfoVO.setAllProfitAndLose(allProfitAndLose); |
| | | BigDecimal profitAndLose = this.userPositionMapper.CountPositionAllProfitAndLoseByUserId(user.getId()); |
| | | userInfoVO.setAllProfitAndLose(allProfitAndLose.add(profitAndLose)); |
| | | |
| | | // BigDecimal userAllAmt = user.getUserAmt(); |
| | | BigDecimal userAllAmt = user.getEnableAmt(); |
| | | userAllAmt = userAllAmt.add(allProfitAndLose); |
| | | if(null != allProfitAndLose){ |
| | | userInfoVO.setAllProfitAndLose(allProfitAndLose); |
| | | userAllAmt = userAllAmt.add(allProfitAndLose); |
| | | } |
| | | |
| | | |
| | | |
| | | userInfoVO.setEnableIndexAmt(user.getEnableIndexAmt()); |