first commit

This commit is contained in:
2023-06-20 21:36:58 +08:00
parent 73ea40a18d
commit 96856617a8
13 changed files with 120 additions and 43 deletions

View File

@ -5,11 +5,10 @@
<mapper namespace="com.qiaoba.module.system.mapper.SysConfigMapper">
<select id="checkKeyIsExist" resultType="string">
select config_key from sys_config
where config_key = #{configKey}
<if test="configId !=null">
and config_id != #{configId}
where config_key = #{sysConfig.configKey}
<if test="sysConfig.configId !=null">
and config_id != #{sysConfig.configId}
</if>
limit 1
</select>
<select id="selectByIds" resultType="com.qiaoba.api.system.entity.SysConfig">

View File

@ -6,11 +6,10 @@
<select id="checkDictTypeUnique" resultType="string">
select dict_type from sys_dict_type
where dict_type = #{dictType}
<if test="dictId != null and dictId != ''">
and dict_id != #{dictId}
where dict_type = #{sysDictType.dictType}
<if test="sysDictType.dictId != null and sysDictType.dictId != ''">
and dict_id != #{sysDictType.dictId}
</if>
limit 1
</select>
<select id="checkAllowDelete" resultType="string">
@ -20,6 +19,6 @@
<foreach item="id" collection="list" open="(" separator="," close=")">
#{id}
</foreach>
and t2.dict_code is not null limit 1
and t2.dict_code is not null
</select>
</mapper>