xiaoyong931011
2021-03-26 ec8da058e74bae11d9d67580d9ae0e2e70527ae8
20210326  交易员列表定时器
2 files modified
5 ■■■■■ changed files
src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/quartz/job/FollowProfitUpdateJob.java 3 ●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java
@@ -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));
src/main/java/com/xcong/excoin/quartz/job/FollowProfitUpdateJob.java
@@ -53,7 +53,8 @@
                Long tradeMemberId = trader.getMemberId();
                FollowTraderProfitInfoEntity traderInfoProfit = followTraderProfitInfoDao.selectTraderInfoProfitByMemberId(tradeMemberId);
                // 累计收益率
                BigDecimal totalProfitRatio = contractOrderDao.selectFollowOrderTotalProfitByMemberId(tradeMemberId) == null?BigDecimal.ZERO:contractOrderDao.selectFollowOrderTotalProfitByMemberId(tradeMemberId).setScale(2, BigDecimal.ROUND_DOWN);
                BigDecimal ljsyl = contractOrderDao.selectFollowOrderTotalProfitByMemberId(tradeMemberId);
                BigDecimal totalProfitRatio = (ljsyl == null?BigDecimal.ZERO:ljsyl.setScale(2, BigDecimal.ROUND_DOWN));
                traderInfoProfit.setTotalProfitRatio(totalProfitRatio);
                // 带单总收益,只查询交易员自己的带单总收益
                BigDecimal totalProfit = followFollowerOrderRelationDao.selectTraderTotalProfitSelf(tradeMemberId);