From b4cc626b4a948952d21296cc62604b4f1d33bdb2 Mon Sep 17 00:00:00 2001
From: yaozc <yaozc@yhzhg.cn>
Date: Wed, 18 Oct 2023 06:39:41 +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