From 04b73bbb2b20f0c3bef5c8ca94edf97eeb9d0994 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Sat, 11 May 2024 11:35:26 +0800
Subject: [PATCH] 香港新环境

---
 src/main/java/cc/mrbird/febs/FebsShiroApplication.java |   42 +++++++++++++++++++++++++++---------------
 1 files changed, 27 insertions(+), 15 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/FebsShiroApplication.java b/src/main/java/cc/mrbird/febs/FebsShiroApplication.java
index f331bd3..0a42d03 100644
--- a/src/main/java/cc/mrbird/febs/FebsShiroApplication.java
+++ b/src/main/java/cc/mrbird/febs/FebsShiroApplication.java
@@ -5,6 +5,7 @@
 import cc.mrbird.febs.dapp.entity.DataDictionaryCustom;
 import cc.mrbird.febs.dapp.enumerate.DataDictionaryEnum;
 import cc.mrbird.febs.dapp.mapper.DataDictionaryCustomMapper;
+import cc.mrbird.febs.dapp.service.DappSystemService;
 import cn.hutool.core.util.StrUtil;
 import org.mybatis.spring.annotation.MapperScan;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -26,10 +27,13 @@
 @SpringBootApplication
 @EnableTransactionManagement
 @MapperScan("cc.mrbird.febs.*.mapper")
+@MapperScan("cc.mrbird.febs.dapp.*.mapper")
 public class FebsShiroApplication {
 
     @Autowired
     private DataDictionaryCustomMapper dataDictionaryCustomMapper;
+    @Autowired
+    private DappSystemService dappSystemService;
 
     @Autowired
     private SystemConstants systemConstants;
@@ -40,21 +44,29 @@
                 .run(args);
     }
 
-    @PostConstruct
-    public void systemConstantsInit() {
-        DataDictionaryCustom dataDictionaryCustom = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.FEE_ADDRESS_KEY.getType(), DataDictionaryEnum.FEE_ADDRESS_KEY.getCode());
-        String key = dataDictionaryCustom.getCode();
-        key = StrUtil.toCamelCase(key);
-        String value = dataDictionaryCustom.getValue();
-        try {
-            Field field = systemConstants.getClass().getDeclaredField(key);
-            field.set(systemConstants, value);
-            AppContants.FEE_ADDRESS_KEY.put("feeAddressKey",systemConstants.getFeeAddressKey());
+//    @PostConstruct
+//    public void systemConstantsInit() {
+//        DataDictionaryCustom dataDictionaryCustom = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
+//                DataDictionaryEnum.FEE_ADDRESS_KEY.getType(),
+//                DataDictionaryEnum.FEE_ADDRESS_KEY.getCode());
+//        String key = dataDictionaryCustom.getCode();
+//        key = StrUtil.toCamelCase(key);
+//        String value = dataDictionaryCustom.getValue();
+//        try {
+//            Field field = systemConstants.getClass().getDeclaredField(key);
+//            field.set(systemConstants, value);
+//            AppContants.FEE_ADDRESS_KEY.put("feeAddressKey",systemConstants.getFeeAddressKey());
 //            dataDictionaryCustom.setValue("isReady");
-            dataDictionaryCustomMapper.updateById(dataDictionaryCustom);
-        } catch (Exception e) {
-            e.printStackTrace();
-        }
-    }
+//            dataDictionaryCustomMapper.updateById(dataDictionaryCustom);
+//        } catch (Exception e) {
+//            e.printStackTrace();
+//        }
+//    }
+
+
+//    @PostConstruct
+//    public void systemDicInit() {
+//        dappSystemService.selectAndInsertDics();
+//    }
 
 }

--
Gitblit v1.9.1