| | |
| | | .multiply(new BigDecimal(currentFlat)) |
| | | .multiply(symbolSku).setScale(8, BigDecimal.ROUND_DOWN); |
| | | MemberEntity memberEntity = memberService.getById(memberId); |
| | | |
| | | log.info("划点前:{}", profitLossPrice); |
| | | profitLossPrice = profitLossPrice.multiply(BigDecimal.ONE.subtract(memberEntity.getClosingSpread().divide(BigDecimal.valueOf(100), 4, BigDecimal.ROUND_DOWN))); |
| | | log.info("划点后:{}", profitLossPrice); |
| | | if (memberEntity.getIsProfit() == 1) { |
| | | PlatformTradeSettingEntity tradeSetting = cacheSettingUtils.getTradeSetting(); |
| | | if (profitLossPrice.compareTo(BigDecimal.ZERO) > 0) { |
| | |
| | | .multiply(symbolSku).setScale(8, BigDecimal.ROUND_DOWN); |
| | | MemberEntity memberEntity = memberService.getById(memberId); |
| | | |
| | | log.info("划点前:{}", profitLossPrice); |
| | | profitLossPrice = profitLossPrice.multiply(BigDecimal.ONE.subtract(memberEntity.getClosingSpread().divide(BigDecimal.valueOf(100), 4, BigDecimal.ROUND_DOWN))); |
| | | log.info("划点后:{}", profitLossPrice); |
| | | if (memberEntity.getIsProfit() == 1) { |
| | | PlatformTradeSettingEntity tradeSetting = cacheSettingUtils.getTradeSetting(); |
| | | if (profitLossPrice.compareTo(BigDecimal.ZERO) > 0) { |