From d18c0bde988f8501ba84600f9d3d02f676a881e8 Mon Sep 17 00:00:00 2001
From: yaozc <unbelievers@yeah.net>
Date: Mon, 20 Mar 2023 03:07:10 +0000
Subject: [PATCH] 强制更新的临时对应。
---
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/DictDetailRepository.java | 9 +++++++++
1 files changed, 9 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 850e01d..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;
@@ -41,4 +42,12 @@
* @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