1
dd
2026-01-28 27cfb25fca116d371de1697fb49b7e53ec6e3031
src/main/java/com/nq/service/impl/UserServiceImpl.java
@@ -1830,11 +1830,16 @@
        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());