From b87c5549fe471167882192944db3f2d6b729476c Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Fri, 15 Mar 2024 14:13:55 +0800
Subject: [PATCH] 抽奖

---
 src/main/java/cc/mrbird/febs/mall/controller/AdminSystemController.java |   34 +++++++++++++++++++++++++++++++++-
 1 files changed, 33 insertions(+), 1 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/mall/controller/AdminSystemController.java b/src/main/java/cc/mrbird/febs/mall/controller/AdminSystemController.java
index a24183c..4d33ad7 100644
--- a/src/main/java/cc/mrbird/febs/mall/controller/AdminSystemController.java
+++ b/src/main/java/cc/mrbird/febs/mall/controller/AdminSystemController.java
@@ -55,6 +55,31 @@
     @PostMapping(value = "/cashOutSetting")
     public FebsResponse cashOutSetting(CashOutSettingDto cashOutSettingDto) {
         commonService.addDataDic(DataDictionaryEnum.CASHOUT_SETTING.getType(), DataDictionaryEnum.CASHOUT_SETTING.getCode(), cashOutSettingDto, "提现设置");
+
+        commonService.updateDataDic(
+                DataDictionaryEnum.BANK_TRANS_URL.getType(),
+                DataDictionaryEnum.BANK_TRANS_URL.getCode(),
+                cashOutSettingDto.getUrlStr());
+        commonService.updateDataDic(
+                DataDictionaryEnum.BANK_TRANS_VERIFY_IP.getType(),
+                DataDictionaryEnum.BANK_TRANS_VERIFY_IP.getCode(),
+                cashOutSettingDto.getVerifyIp());
+        commonService.updateDataDic(
+                DataDictionaryEnum.BANK_TRANS_VERIFY_PORT.getType(),
+                DataDictionaryEnum.BANK_TRANS_VERIFY_PORT.getCode(),
+                cashOutSettingDto.getVerifyPort());
+        commonService.updateDataDic(
+                DataDictionaryEnum.BANK_TRANS_FKZH.getType(),
+                DataDictionaryEnum.BANK_TRANS_FKZH.getCode(),
+                cashOutSettingDto.getFkzh());
+        commonService.updateDataDic(
+                DataDictionaryEnum.BANK_TRANS_customerId.getType(),
+                DataDictionaryEnum.BANK_TRANS_customerId.getCode(),
+                cashOutSettingDto.getCustomerId());
+        commonService.updateDataDic(
+                DataDictionaryEnum.BANK_TRANS_softwareId.getType(),
+                DataDictionaryEnum.BANK_TRANS_softwareId.getCode(),
+                cashOutSettingDto.getSoftwareId());
         return new FebsResponse().success();
     }
 
@@ -115,6 +140,14 @@
                 DataDictionaryEnum.AGENT_PERK.getType(),
                 DataDictionaryEnum.AGENT_PERK.getCode(),
                 hlmBasicPerkDto.getAgentPerk());
+        commonService.updateDataDic(
+                DataDictionaryEnum.PERK_AGENT_ACHIEVE_TOTAL.getType(),
+                DataDictionaryEnum.PERK_AGENT_ACHIEVE_TOTAL.getCode(),
+                hlmBasicPerkDto.getPerkAgentAchieveTotal());
+        commonService.updateDataDic(
+                DataDictionaryEnum.PERK_AGENT_ACHIEVE_PERCENT.getType(),
+                DataDictionaryEnum.PERK_AGENT_ACHIEVE_PERCENT.getCode(),
+                hlmBasicPerkDto.getPerkAgentAchievePercent());
         return new FebsResponse().success();
     }
 
@@ -202,7 +235,6 @@
                 GreenScoreEnum.SCORE_PRICE.getType(),
                 GreenScoreEnum.SCORE_PRICE.getCode()
         );
-        agentProducer.sendForceVoucherSaleMsg(scorePriceDic.getValue());
         return new FebsResponse().success();
     }
 

--
Gitblit v1.9.1