From 7e372698c42c047d3b4e629dafe4e7b689990b9d Mon Sep 17 00:00:00 2001
From: zhanghl <253316343@qq.com>
Date: 星期一, 12 五月 2025 19:34:16 +0800
Subject: [PATCH] 钣金计划:从Redis中读取库存信息
---
aps-modules/aps-system/src/main/resources/mapper/system/SysDictDataMapper.xml | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/aps-modules/aps-system/src/main/resources/mapper/system/SysDictDataMapper.xml b/aps-modules/aps-system/src/main/resources/mapper/system/SysDictDataMapper.xml
index c5e8f9b..82044e0 100644
--- a/aps-modules/aps-system/src/main/resources/mapper/system/SysDictDataMapper.xml
+++ b/aps-modules/aps-system/src/main/resources/mapper/system/SysDictDataMapper.xml
@@ -40,7 +40,25 @@
</where>
order by dict_sort asc
</select>
-
+
+ <select id="selectByValue" resultMap="SysDictDataResult">
+ <include refid="selectDictDataVo"/>
+ <where>
+ <if test="dictTypeApsArea != null and dictTypeApsArea != ''">
+ AND dict_type = #{dictTypeApsArea}
+ </if>
+ <if test="dictValue != null and dictValue != ''">
+ AND dict_value = #{dictValue}
+ </if>
+ </where>
+ order by dict_sort asc
+ </select>
+
+ <select id="selectDictValueList" resultMap="SysDictDataResult">
+ select distinct dict_value from sys_dict_data where dict_type = #{dictType}
+ </select>
+
+
<select id="selectDictDataByType" parameterType="String" resultMap="SysDictDataResult">
<include refid="selectDictDataVo"/>
where status = '0' and dict_type = #{dictType} order by dict_sort asc
--
Gitblit v1.9.3