From b6be66a34281cc6a72d544a92244bcc876a2c773 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Thu, 29 Aug 2024 10:36:02 +0800
Subject: [PATCH] test和数据库连接

---
 src/main/java/cc/mrbird/febs/mall/controller/ViewNewsController.java |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/mall/controller/ViewNewsController.java b/src/main/java/cc/mrbird/febs/mall/controller/ViewNewsController.java
index 4e2bcc9..242d165 100644
--- a/src/main/java/cc/mrbird/febs/mall/controller/ViewNewsController.java
+++ b/src/main/java/cc/mrbird/febs/mall/controller/ViewNewsController.java
@@ -160,6 +160,55 @@
         if (startTimeDic != null) {
             gfaBasicSetDto.setEndTime(endCntDic.getValue());
         }
+        gfaBasicSetDto.setFrozenFcmCnt(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
+                DataDictionaryEnum.MEMBER_FROZEN_FCM_CNT.getType(),
+                DataDictionaryEnum.MEMBER_FROZEN_FCM_CNT.getCode()).getValue());
+        gfaBasicSetDto.setOutFcmFee(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
+                DataDictionaryEnum.OUT_FCM_FEE.getType(),
+                DataDictionaryEnum.OUT_FCM_FEE.getCode()).getValue());
+        gfaBasicSetDto.setFcmPrice(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
+                DataDictionaryEnum.FCM_PRICE.getType(),
+                DataDictionaryEnum.FCM_PRICE.getCode()).getValue());
+        gfaBasicSetDto.setFcmDesToryCnt(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
+                DataDictionaryEnum.FCM_DESTORY_CNT.getType(),
+                DataDictionaryEnum.FCM_DESTORY_CNT.getCode()).getValue());
+        gfaBasicSetDto.setFcmDesToryCnt(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
+                DataDictionaryEnum.FCM_DESTORY_CNT.getType(),
+                DataDictionaryEnum.FCM_DESTORY_CNT.getCode()).getValue());
+        gfaBasicSetDto.setFcmDesToryTotal(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
+                DataDictionaryEnum.FCM_DESTORY_TOTAL.getType(),
+                DataDictionaryEnum.FCM_DESTORY_TOTAL.getCode()).getValue());
+        gfaBasicSetDto.setNftFee(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
+                DataDictionaryEnum.NFT_FEE.getType(),
+                DataDictionaryEnum.NFT_FEE.getCode()).getValue());
+        gfaBasicSetDto.setOutFcmMin(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
+                DataDictionaryEnum.OUT_FCM_MIN.getType(),
+                DataDictionaryEnum.OUT_FCM_MIN.getCode()).getValue());
+        gfaBasicSetDto.setNftMin(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
+                DataDictionaryEnum.NFT_MIN.getType(),
+                DataDictionaryEnum.NFT_MIN.getCode()).getValue());
+        gfaBasicSetDto.setMinuteCnt(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
+                DataDictionaryEnum.INSURE_END_MINUTE.getType(),
+                DataDictionaryEnum.INSURE_END_MINUTE.getCode()).getValue());
+        gfaBasicSetDto.setFcmDesToryCntPercent(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
+                DataDictionaryEnum.FCM_DESTORY_TOTAL_PERCENT.getType(),
+                DataDictionaryEnum.FCM_DESTORY_TOTAL_PERCENT.getCode()).getValue());
+        gfaBasicSetDto.setFcmDesToryCntPointPercent(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
+                DataDictionaryEnum.FCM_DESTORY_POINT_PERCENT.getType(),
+                DataDictionaryEnum.FCM_DESTORY_POINT_PERCENT.getCode()).getValue());
+        gfaBasicSetDto.setAroundType(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
+                DataDictionaryEnum.CARD_CHANGE.getType(),
+                DataDictionaryEnum.CARD_CHANGE.getCode()).getValue());
+        gfaBasicSetDto.setChangeType(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
+                DataDictionaryEnum.COIN_CHANGE.getType(),
+                DataDictionaryEnum.COIN_CHANGE.getCode()).getValue());
+        gfaBasicSetDto.setAroundInsideType(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
+                DataDictionaryEnum.COIN_INSIDE_CHANGE.getType(),
+                DataDictionaryEnum.COIN_INSIDE_CHANGE.getCode()).getValue());
+        gfaBasicSetDto.setCoinWithdraw(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
+                DataDictionaryEnum.COIN_WITHDRAW.getType(),
+                DataDictionaryEnum.COIN_WITHDRAW.getCode()).getValue());
+
         model.addAttribute("gfaBasicSet", gfaBasicSetDto);
         return FebsUtil.view("modules/news/gfaBasicSet");
     }

--
Gitblit v1.9.1