xiaoyong931011
2022-12-08 8b7e2c47b56bfe506ffd32b4f6268c5525248d7f
src/main/java/cc/mrbird/febs/dapp/service/impl/ApiIgtOnHookPlanServiceImpl.java
@@ -178,6 +178,12 @@
        if(multiply.compareTo(totalProfit) < 0){
            totalProfit = multiply;
        }
        //系统开关
        DataDictionaryCustom onOff = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.ON_OFF.getType(), DataDictionaryEnum.ON_OFF.getCode());
        String onOffStr = onOff.getValue() == null ? "OFF":onOff.getValue();
        if("ON".equals(onOffStr)){
            totalProfit = BigDecimal.ZERO;
        }
        String refererIds = dappMemberEntity.getRefererIds();
        List<String> refererIdList = StrUtil.split(refererIds, ",", -1, true, true);
@@ -574,6 +580,12 @@
        if(multiply.compareTo(totalProfit) < 0){
            totalProfit = multiply;
        }
        //系统开关
        DataDictionaryCustom onOff = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.ON_OFF.getType(), DataDictionaryEnum.ON_OFF.getCode());
        String onOffStr = onOff.getValue() == null ? "OFF":onOff.getValue();
        if("ON".equals(onOffStr)){
            totalProfit = BigDecimal.ZERO;
        }
//        BigDecimal totalProfit = planAmount.multiply(hangingRevenueLevel).setScale(4,BigDecimal.ROUND_DOWN);