zhuo
2025-02-25 2c6f87e7a430f52f709c4686dbecc767ca377e2c
ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml
@@ -140,4 +140,12 @@
        from sys_dict_type
        where dict_name = #{dictName}
    </select>
    <!-- 根据字典编号, 字典值value查询label内容 -->
    <select id="selectLabelByDict" resultType="java.lang.String">
        select dict_label
        from sys_dict_data
        where dict_type = #{dictType}
          and dict_value = #{dictValue}
    </select>
</mapper>