From 18b681e553980b20bc9b5b3a113167f33b83a7b3 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 10 Aug 2023 14:12:37 +0800
Subject: [PATCH] 数据修改

---
 src/main/java/cc/mrbird/febs/dapp/controller/ViewController.java |   58 +++++++++++++++++++++++++++++-----------------------------
 1 files changed, 29 insertions(+), 29 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/dapp/controller/ViewController.java b/src/main/java/cc/mrbird/febs/dapp/controller/ViewController.java
index b0881a1..2a0ab77 100644
--- a/src/main/java/cc/mrbird/febs/dapp/controller/ViewController.java
+++ b/src/main/java/cc/mrbird/febs/dapp/controller/ViewController.java
@@ -135,35 +135,35 @@
     @RequiresPermissions("fee:setting:view")
     public String systemFeeSet(Model model) {
         AdminSystemFeeVo adminSystemFeeVo = new AdminSystemFeeVo();
-        DataDictionaryCustom rebateDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.REBATE_PERCENT.getType(), DataDictionaryEnum.REBATE_PERCENT.getCode());
-        if (ObjectUtil.isNotEmpty(rebateDic)) {
-            String value = rebateDic.getValue() == null ? "0" : rebateDic.getValue();
-            adminSystemFeeVo.setRebatePercent(value);
-        }
-        DataDictionaryCustom memberFeeDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.MEMBER_FEE.getType(), DataDictionaryEnum.MEMBER_FEE.getCode());
-        if (ObjectUtil.isNotEmpty(memberFeeDic)) {
-            String value = memberFeeDic.getValue() == null ? "0" : memberFeeDic.getValue();
-            adminSystemFeeVo.setMemberFee(value);
-        }
-        DataDictionaryCustom serviceFeeDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.WITHDRAW_SERVICE_FEE.getType(), DataDictionaryEnum.WITHDRAW_SERVICE_FEE.getCode());
-        if (ObjectUtil.isNotEmpty(serviceFeeDic)) {
-            String value = serviceFeeDic.getValue() == null ? "0" : serviceFeeDic.getValue();
-            adminSystemFeeVo.setServiceFee(value);
-        }
-
-        DataDictionaryCustom symbolPrice = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.SYMBOL_PRICE.getType(), DataDictionaryEnum.SYMBOL_PRICE.getCode());
-        if (ObjectUtil.isNotEmpty(symbolPrice)) {
-            String value = symbolPrice.getValue() == null ? "0" : symbolPrice.getValue();
-            adminSystemFeeVo.setSymbolPrice(value);
-        }
-
-        DataDictionaryCustom directProfitDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
-                DataDictionaryEnum.DIRECT_PROFIT.getType(), DataDictionaryEnum.DIRECT_PROFIT.getCode());
-        if (ObjectUtil.isNotEmpty(directProfitDic)) {
-            String value = directProfitDic.getValue() == null ? "0" : directProfitDic.getValue();
-            adminSystemFeeVo.setDirectProfit(value);
-        }
-        model.addAttribute("systemFee", adminSystemFeeVo);
+//        DataDictionaryCustom rebateDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.REBATE_PERCENT.getType(), DataDictionaryEnum.REBATE_PERCENT.getCode());
+//        if (ObjectUtil.isNotEmpty(rebateDic)) {
+//            String value = rebateDic.getValue() == null ? "0" : rebateDic.getValue();
+//            adminSystemFeeVo.setRebatePercent(value);
+//        }
+//        DataDictionaryCustom memberFeeDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.MEMBER_FEE.getType(), DataDictionaryEnum.MEMBER_FEE.getCode());
+//        if (ObjectUtil.isNotEmpty(memberFeeDic)) {
+//            String value = memberFeeDic.getValue() == null ? "0" : memberFeeDic.getValue();
+//            adminSystemFeeVo.setMemberFee(value);
+//        }
+//        DataDictionaryCustom serviceFeeDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.WITHDRAW_SERVICE_FEE.getType(), DataDictionaryEnum.WITHDRAW_SERVICE_FEE.getCode());
+//        if (ObjectUtil.isNotEmpty(serviceFeeDic)) {
+//            String value = serviceFeeDic.getValue() == null ? "0" : serviceFeeDic.getValue();
+//            adminSystemFeeVo.setServiceFee(value);
+//        }
+//
+//        DataDictionaryCustom symbolPrice = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.SYMBOL_PRICE.getType(), DataDictionaryEnum.SYMBOL_PRICE.getCode());
+//        if (ObjectUtil.isNotEmpty(symbolPrice)) {
+//            String value = symbolPrice.getValue() == null ? "0" : symbolPrice.getValue();
+//            adminSystemFeeVo.setSymbolPrice(value);
+//        }
+//
+//        DataDictionaryCustom directProfitDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
+//                DataDictionaryEnum.DIRECT_PROFIT.getType(), DataDictionaryEnum.DIRECT_PROFIT.getCode());
+//        if (ObjectUtil.isNotEmpty(directProfitDic)) {
+//            String value = directProfitDic.getValue() == null ? "0" : directProfitDic.getValue();
+//            adminSystemFeeVo.setDirectProfit(value);
+//        }
+//        model.addAttribute("systemFee", adminSystemFeeVo);
         return FebsUtil.view("dapp/system-fee-set");
     }
 

--
Gitblit v1.9.1