From 2e62ce3ffc62c57ac15d86984476394636ce41e3 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期三, 19 三月 2025 14:59:28 +0800
Subject: [PATCH] 赋码规则
---
system/src/main/resources/mapper/system/SysDictDataMapper.xml | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/system/src/main/resources/mapper/system/SysDictDataMapper.xml b/system/src/main/resources/mapper/system/SysDictDataMapper.xml
index 8cdd912..a821325 100644
--- a/system/src/main/resources/mapper/system/SysDictDataMapper.xml
+++ b/system/src/main/resources/mapper/system/SysDictDataMapper.xml
@@ -35,6 +35,9 @@
<if test="dictLabel != null and dictLabel != ''">
AND dict_label like concat('%', #{dictLabel}, '%')
</if>
+ <if test="parentId != null">
+ AND parent_id = #{parentId}
+ </if>
<if test="status != null and status != ''">
AND status = #{status}
</if>
@@ -95,6 +98,11 @@
update sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType}
</update>
+ <select id="selectDictDataByValue" parameterType="string" resultMap="SysDictDataResult">
+ <include refid="selectDictDataVo"/>
+ where dict_value = #{dictValue} AND parent_id = (SELECT dict_code FROM sys_dict_data WHERE dict_value = #{parentValue} AND dict_type = #{dictType}) AND dict_type = #{dictType}
+ </select>
+
<insert id="insertDictData" parameterType="SysDictData">
insert into sys_dict_data(
<if test="dictSort != null">dict_sort,</if>
--
Gitblit v1.8.0