xiaoyong931011
2021-03-31 65f792e975b7ff985bf42003ceb49245904288b2
src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java
@@ -405,7 +405,7 @@
                  myFollowOrderVo.setLeverRatio(leverRatio);
                  BigDecimal rewardAmount = contractOrderEntity.getRewardAmount().setScale(2, BigDecimal.ROUND_DOWN);
                  myFollowOrderVo.setRewardAmount(rewardAmount);
                  BigDecimal rewardRatio = contractOrderEntity.getRewardRatio().setScale(4, BigDecimal.ROUND_DOWN);
                  BigDecimal rewardRatio = contractOrderEntity.getRewardRatio() == null ? BigDecimal.ZERO : contractOrderEntity.getRewardRatio().setScale(4, BigDecimal.ROUND_DOWN);
                  myFollowOrderVo.setRewardRatio(rewardRatio);
                  int symbolCnt = contractOrderEntity.getSymbolCnt();
                  myFollowOrderVo.setSymbolCnt(symbolCnt);
@@ -526,7 +526,7 @@
            String nickname = followTraderInfoEntity.getNickname();
            myFollowTraderInfoVo.setNickname(nickname);
            BigDecimal totalPrincipal = FollowFollowerProfitEntity.getTotalPrincipal();
            myFollowTraderInfoVo.setTotalPrincipal(totalPrincipal);
            myFollowTraderInfoVo.setTotalPrincipal(totalPrincipal.setScale(2, BigDecimal.ROUND_DOWN));
            BigDecimal totalProfit = FollowFollowerProfitEntity.getTotalProfit();
              myFollowTraderInfoVo.setTotalProfit(totalProfit.setScale(2, BigDecimal.ROUND_DOWN));
@@ -1148,6 +1148,7 @@
                          BigDecimal rewardAmount = orderEntity.getRewardAmount();
                          allRewardAmount = allRewardAmount.add(rewardAmount);
                          BigDecimal rewardRatio = orderEntity.getRewardRatio();
                        rewardRatio = rewardRatio == null ? BigDecimal.ZERO : rewardRatio;
                          allRewardRatio = allRewardRatio.add(rewardRatio);
                       }
                    }
@@ -1170,7 +1171,7 @@
                 myFollowOrderVo.setLeverRatio(leverRatio);
                 BigDecimal rewardAmount = contractOrderEntity.getRewardAmount().setScale(2, BigDecimal.ROUND_DOWN);
                 myFollowOrderVo.setRewardAmount(rewardAmount);
                 BigDecimal rewardRatio = contractOrderEntity.getRewardRatio().setScale(4, BigDecimal.ROUND_DOWN);
                 BigDecimal rewardRatio = contractOrderEntity.getRewardRatio() == null ? BigDecimal.ZERO : contractOrderEntity.getRewardRatio().setScale(4, BigDecimal.ROUND_DOWN);
                 myFollowOrderVo.setRewardRatio(rewardRatio);
                 int symbolCnt = contractOrderEntity.getSymbolCnt();
                 myFollowOrderVo.setSymbolCnt(symbolCnt);