| | |
| | | public boolean systemHasStart() { |
| | | String hasStart = redisUtils.getString(AppContants.SYSTEM_START_FLAG); |
| | | if (!"start".equals(hasStart)) { |
| | | log.info("系统未启动"); |
| | | return false; |
| | | } |
| | | |
| | |
| | | BigDecimal totalFee = new BigDecimal(jsonObject.getString("fee")); |
| | | String batchNo = RandomUtil.randomString(16); |
| | | |
| | | BigDecimal cardProfit = totalFee.multiply(new BigDecimal("0.5")); |
| | | BigDecimal cardProfit = totalFee.multiply(new BigDecimal("0.4")); |
| | | BigDecimal destroy = totalFee.subtract(cardProfit); |
| | | |
| | | BigDecimal preFee = cardProfit.divide(BigDecimal.valueOf(5000), ChainService.getInstance(ChainEnum.BSC_TFC.name()).decimals(), RoundingMode.HALF_UP); |