first commit

This commit is contained in:
2023-05-31 21:21:57 +08:00
parent bb4963a84f
commit 603b8c1c9f
10 changed files with 449 additions and 203 deletions

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.qiaoba.module.system.mapper.SysDictDataMapper">
<select id="checkDictLabelUnique" resultType="string">
SELECT dict_label FROM sys_dict_data where dict_type = #{dictType} and dict_label = #{dictLabel}
<if test="dictCode != null and dictCode != ''">
and dict_code != #{dictCode}
</if>
limit 1
</select>
<select id="checkDictValueUnique" resultType="string">
SELECT dict_value FROM sys_dict_data where dict_type = #{dictType} and dict_value = #{dictValue}
<if test="dictCode != null and dictCode != ''">
and dict_code != #{dictCode}
</if>
limit 1
</select>
</mapper>

View File

@ -20,6 +20,6 @@
<foreach item="id" collection="list" open="(" separator="," close=")">
#{id}
</foreach>
limit 1
and t2.dict_code is not null limit 1
</select>
</mapper>