first commit
This commit is contained in:
@ -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>
|
||||
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user