|  |  | 
 |  |  |         List<FollowRecordsVo> records = historyOrderRecordsVoList.getRecords();
 | 
 |  |  |         if(CollUtil.isNotEmpty(records)) {
 | 
 |  |  |             for(FollowRecordsVo followRecordsVo : records) {
 | 
 |  |  | 				 | 
 |  |  |                 BigDecimal totalPrincipal = followRecordsVo.getTotalPrincipal().setScale(2, BigDecimal.ROUND_DOWN);
 | 
 |  |  |                 followRecordsVo.setTotalPrincipal(totalPrincipal);
 | 
 |  |  |                 Long memberIdFollow = followRecordsVo.getMemberId();
 | 
 |  |  |                 Long tradeId = followRecordsVo.getTradeId();
 | 
 |  |  |                 //获取当前跟随者最后一个历史跟单的保证金
 | 
 |  |  |                 BigDecimal bondAmount = BigDecimal.ZERO;
 | 
 |  |  |                 List<BigDecimal> bondamounts = followFollowerProfitDao.selectBondAmountByTradeIdAndMemberId(memberIdFollow,tradeId);
 | 
 |  |  |                 if(CollUtil.isNotEmpty(bondamounts)){
 | 
 |  |  |                     bondAmount = bondamounts.get(0).setScale(2, BigDecimal.ROUND_DOWN);
 | 
 |  |  | 
 | 
 |  |  |                 }
 | 
 |  |  |                 followRecordsVo.setTotalPrincipal(bondAmount);
 | 
 |  |  | 
 | 
 |  |  | //                BigDecimal totalPrincipal = followRecordsVo.getTotalPrincipal().setScale(2, BigDecimal.ROUND_DOWN);
 | 
 |  |  | //                followRecordsVo.setTotalPrincipal(totalPrincipal);
 | 
 |  |  |                 BigDecimal totalProfit = followRecordsVo.getTotalProfit().setScale(2, BigDecimal.ROUND_DOWN);
 | 
 |  |  |                 followRecordsVo.setTotalProfit(totalProfit);
 | 
 |  |  |                 
 | 
 |  |  | 
 |  |  |                 
 | 
 |  |  |                 Long id = followFollowerProfitEntity.getId();
 | 
 |  |  |                 myFollowTraderInfoVo.setId(id);
 | 
 |  |  |                 BigDecimal totalPrincipal = followFollowerProfitEntity.getTotalPrincipal();
 | 
 |  |  |                 myFollowTraderInfoVo.setTotalPrincipal(totalPrincipal);
 | 
 |  |  | 
 | 
 |  |  |                 Long tradeId = followFollowerProfitEntity.getTradeId();
 | 
 |  |  |                 //获取当前跟随者最后一个历史跟单的保证金
 | 
 |  |  |                 BigDecimal bondAmount = BigDecimal.ZERO;
 | 
 |  |  |                 List<BigDecimal> bondamounts = followFollowerProfitDao.selectBondAmountByTradeIdAndMemberId(followMemberId,tradeId);
 | 
 |  |  |                 if(CollUtil.isNotEmpty(bondamounts)){
 | 
 |  |  |                     bondAmount = bondamounts.get(0).setScale(2, BigDecimal.ROUND_DOWN);
 | 
 |  |  | 
 | 
 |  |  |                 }
 | 
 |  |  |                 myFollowTraderInfoVo.setTotalPrincipal(bondAmount);
 | 
 |  |  | //                BigDecimal totalPrincipal = followFollowerProfitEntity.getTotalPrincipal();
 | 
 |  |  | //                myFollowTraderInfoVo.setTotalPrincipal(totalPrincipal);
 | 
 |  |  |                 BigDecimal totalProfit = followFollowerProfitEntity.getTotalProfit();
 | 
 |  |  |                 myFollowTraderInfoVo.setTotalProfit(totalProfit.setScale(2, BigDecimal.ROUND_DOWN));
 | 
 |  |  |                 
 |