wzy
2022-08-28 c5502a3c8fd0680f556d14b58eb4a26f96d49c80
Merge branch 'TFC' of http://120.27.238.55:7000/r/sys-dapp into TFC
2 files modified
11 ■■■■■ changed files
src/main/java/cc/mrbird/febs/dapp/service/impl/DappSystemServiceImpl.java 2 ●●● patch | view | raw | blame | history
src/test/java/cc/mrbird/febs/MemberTest.java 9 ●●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/dapp/service/impl/DappSystemServiceImpl.java
@@ -769,7 +769,7 @@
        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);
src/test/java/cc/mrbird/febs/MemberTest.java
@@ -9,6 +9,7 @@
import cc.mrbird.febs.dapp.mapper.DappMemberBoxRecordMapper;
import cc.mrbird.febs.dapp.mapper.DappMemberDao;
import cc.mrbird.febs.dapp.mapper.DataDictionaryCustomMapper;
import cc.mrbird.febs.dapp.service.DappSystemService;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.apache.commons.lang3.StringUtils;
@@ -114,4 +115,12 @@
        }
    }
    @Autowired
    private DappSystemService dappSystemService;
    @Test
    public void boxCntTest() {
        dappSystemService.boxCnt(109L);
    }
}