This commit is contained in:
hucs
2024-07-02 09:59:10 +08:00
parent 3ef6e4f123
commit 5aa8cda06e
9 changed files with 66 additions and 32 deletions

View File

@@ -107,6 +107,11 @@
where u.user_code = #{userName} and u.deleted = 0
</select>
<select id="selectUserByUserNameAndTenantId" resultMap="BaseResultMap">
<include refid="selectUserVo"/>
where u.user_code = #{userName} and u.deleted = 0 and u.tenant_id = #{tenantId}
</select>
<select id="checkUserNameUnique" parameterType="String" resultType="int">
select count(1) from sys_user where user_code = #{userName} and deleted = 0 limit 1
</select>