From dfbca56dfc518b791b80516759d3d904a492d501 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 03 Aug 2023 15:57:11 +0800
Subject: [PATCH] 数据修改
---
src/main/java/cc/mrbird/febs/FebsShiroApplication.java | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/main/java/cc/mrbird/febs/FebsShiroApplication.java b/src/main/java/cc/mrbird/febs/FebsShiroApplication.java
index f331bd3..1b02a98 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;
@@ -42,7 +43,9 @@
@PostConstruct
public void systemConstantsInit() {
- DataDictionaryCustom dataDictionaryCustom = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.FEE_ADDRESS_KEY.getType(), DataDictionaryEnum.FEE_ADDRESS_KEY.getCode());
+ 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();
@@ -50,11 +53,17 @@
Field field = systemConstants.getClass().getDeclaredField(key);
field.set(systemConstants, value);
AppContants.FEE_ADDRESS_KEY.put("feeAddressKey",systemConstants.getFeeAddressKey());
-// dataDictionaryCustom.setValue("isReady");
+ dataDictionaryCustom.setValue("isReady");
dataDictionaryCustomMapper.updateById(dataDictionaryCustom);
} catch (Exception e) {
e.printStackTrace();
}
}
+
+// @PostConstruct
+// public void systemDicInit() {
+// dappSystemService.selectAndInsertDics();
+// }
+
}
--
Gitblit v1.9.1