From 6754df3c4faf22d426d45d1c4995c865cab686de Mon Sep 17 00:00:00 2001
From: weicd <weicd@yhzhg.cn>
Date: Mon, 20 Feb 2023 02:45:16 +0000
Subject: [PATCH] 流水相关
---
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