From 6b59d3cbe0ae7a6881885113cfe9cbd818cb63a5 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 18 八月 2025 10:27:52 +0800
Subject: [PATCH] 增加作物生长期判断及相关参数计算等逻辑
---
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/config/MyBatisGlConfig.java | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/config/MyBatisGlConfig.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/config/MyBatisGlConfig.java
index ccfb07f..6645c0b 100644
--- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/config/MyBatisGlConfig.java
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/config/MyBatisGlConfig.java
@@ -19,16 +19,17 @@
@Autowired
private List<SqlSessionFactory> sqlSessionFactoryList;
- @Value("${common.virtual_card_disable_set_inuse:false}")
- private Boolean disableSetInUse;
+ @Value("${common.virtual_card_set_default: false}")
+ private Boolean virtualCardTbProSetDefault;
+
/**
- * 涓や釜鎷︽埅鍣紝鑷姩鐢熸垚ID锛屽紓甯告椂杈撳嚭SQL
+ * 鏍规嵁閰嶇疆鏂囦欢閰嶇疆锛岄厤缃嫤鎴櫒
*/
@PostConstruct
public void addMyInterceptor() {
for (SqlSessionFactory sqlSessionFactory : sqlSessionFactoryList) {
- if (disableSetInUse != null && disableSetInUse.booleanValue()) {
- sqlSessionFactory.getConfiguration().addInterceptor(new VirtualCardInUseInterceptor());
+ if (virtualCardTbProSetDefault != null && virtualCardTbProSetDefault.booleanValue()) {
+ sqlSessionFactory.getConfiguration().addInterceptor(new VirtualCardSetDefaultInterceptor());
}
}
}
--
Gitblit v1.8.0