From 4d730af0447c686133130d0116a0fa3dd82c2dca Mon Sep 17 00:00:00 2001
From: BAOLH <baolh@yhzhg.cn>
Date: Tue, 10 Nov 2026 01:41:03 +0000
Subject: [PATCH] Merge branch 'wcd-2411-update' into wcd
---
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/DictDetailRepository.java | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/DictDetailRepository.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/DictDetailRepository.java
index d80b970..1ec1f3f 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/DictDetailRepository.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/DictDetailRepository.java
@@ -18,6 +18,7 @@
import me.zhengjie.modules.system.domain.DictDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+import org.springframework.data.jpa.repository.Query;
import java.util.List;
@@ -33,4 +34,20 @@
* @return /
*/
List<DictDetail> findByDictName(String name);
+
+ /**
+ * 根据字典名称和字典值查询
+ * @param name
+ * @param value
+ * @return
+ */
+ DictDetail findByDictNameAndValue(String name, String value);
+
+ /**
+ * 根据字典value查询
+ * @param
+ * @param
+ */
+ @Query(value = "SELECT * FROM `sys_dict_detail` where value = ?", nativeQuery = true)
+ DictDetail seleteByValue(String value);
}
\ No newline at end of file
--
Gitblit v1.9.3