From 85d7d8d3444dd931190603349cd4d961a9fd9114 Mon Sep 17 00:00:00 2001
From: YH-zlh <zhaolh@yhzhg.cn>
Date: Wed, 06 Sep 2023 03:21:48 +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