add
This commit is contained in:
@ -4,8 +4,8 @@
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.qiaoba.module.system.mapper.SysPostMapper">
|
||||
|
||||
<select id="checkPostNameUnique" resultType="int">
|
||||
select count(post_id) from sys_post
|
||||
<select id="checkPostNameUnique" resultType="string">
|
||||
select post_id from sys_post
|
||||
where post_name = #{postName}
|
||||
<if test="postId != null and postId != ''">
|
||||
and post_id != #{postId}
|
||||
@ -13,8 +13,8 @@
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="checkPostCodeUnique" resultType="int">
|
||||
select count(post_id) from sys_post
|
||||
<select id="checkPostCodeUnique" resultType="string">
|
||||
select post_id from sys_post
|
||||
where post_code = #{postCode}
|
||||
<if test="postId != null and postId != ''">
|
||||
and post_id != #{postId}
|
||||
|
||||
Reference in New Issue
Block a user