From 2c6f87e7a430f52f709c4686dbecc767ca377e2c Mon Sep 17 00:00:00 2001
From: zhuo <2089219845@qq.com>
Date: 星期二, 25 二月 2025 11:12:53 +0800
Subject: [PATCH] 报告生成查询字典值

---
 ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDictTypeMapper.java |   41 +++++++++++++++++++++++++++++++----------
 1 files changed, 31 insertions(+), 10 deletions(-)

diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDictTypeMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDictTypeMapper.java
index 5fb48fb..c11aae7 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDictTypeMapper.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDictTypeMapper.java
@@ -1,18 +1,22 @@
 package com.ruoyi.system.mapper;
 
 import java.util.List;
+
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.ruoyi.common.core.domain.entity.SysDictType;
+import org.apache.ibatis.annotations.Param;
 
 /**
  * 瀛楀吀琛� 鏁版嵁灞�
- * 
+ *
  * @author ruoyi
  */
 public interface SysDictTypeMapper
 {
     /**
      * 鏍规嵁鏉′欢鍒嗛〉鏌ヨ瀛楀吀绫诲瀷
-     * 
+     *
      * @param dictType 瀛楀吀绫诲瀷淇℃伅
      * @return 瀛楀吀绫诲瀷闆嗗悎淇℃伅
      */
@@ -20,14 +24,14 @@
 
     /**
      * 鏍规嵁鎵�鏈夊瓧鍏哥被鍨�
-     * 
+     *
      * @return 瀛楀吀绫诲瀷闆嗗悎淇℃伅
      */
     public List<SysDictType> selectDictTypeAll();
 
     /**
      * 鏍规嵁瀛楀吀绫诲瀷ID鏌ヨ淇℃伅
-     * 
+     *
      * @param dictId 瀛楀吀绫诲瀷ID
      * @return 瀛楀吀绫诲瀷
      */
@@ -35,7 +39,7 @@
 
     /**
      * 鏍规嵁瀛楀吀绫诲瀷鏌ヨ淇℃伅
-     * 
+     *
      * @param dictType 瀛楀吀绫诲瀷
      * @return 瀛楀吀绫诲瀷
      */
@@ -43,7 +47,7 @@
 
     /**
      * 閫氳繃瀛楀吀ID鍒犻櫎瀛楀吀淇℃伅
-     * 
+     *
      * @param dictId 瀛楀吀ID
      * @return 缁撴灉
      */
@@ -51,7 +55,7 @@
 
     /**
      * 鎵归噺鍒犻櫎瀛楀吀绫诲瀷淇℃伅
-     * 
+     *
      * @param dictIds 闇�瑕佸垹闄ょ殑瀛楀吀ID
      * @return 缁撴灉
      */
@@ -59,7 +63,7 @@
 
     /**
      * 鏂板瀛楀吀绫诲瀷淇℃伅
-     * 
+     *
      * @param dictType 瀛楀吀绫诲瀷淇℃伅
      * @return 缁撴灉
      */
@@ -67,7 +71,7 @@
 
     /**
      * 淇敼瀛楀吀绫诲瀷淇℃伅
-     * 
+     *
      * @param dictType 瀛楀吀绫诲瀷淇℃伅
      * @return 缁撴灉
      */
@@ -75,9 +79,26 @@
 
     /**
      * 鏍¢獙瀛楀吀绫诲瀷绉版槸鍚﹀敮涓�
-     * 
+     *
      * @param dictType 瀛楀吀绫诲瀷
      * @return 缁撴灉
      */
     public SysDictType checkDictTypeUnique(String dictType);
+
+    /**
+     * 鏍规嵁瀛楀吀鍚嶇О鏌ヨ瀛楀吀鏁版嵁
+     *
+     * @param dictName 瀛楀吀鍚嶇О
+     * @return 瀛楀吀鏁版嵁闆嗗悎淇℃伅
+     */
+    List<SysDictType> selectList(String dictName);
+
+    /**
+     * 鏍规嵁瀛楀吀缂栧彿, 瀛楀吀鍊紇alue鏌ヨlabel鍐呭
+     *
+     * @param dictType 瀛楀吀绫诲瀷
+     * @param dictValue 瀛楀吀鍊�
+     * @return 缁撴灉
+     */
+    String selectLabelByDict(@Param("dictType") String dictType, @Param("dictValue") String dictValue);
 }

--
Gitblit v1.9.3