[feat] 新增根据手机号模糊查询用户的接口

This commit is contained in:
hsdllcw
2024-11-07 12:05:39 +08:00
parent 205d5b1129
commit e07bbf122d
32 changed files with 88 additions and 28 deletions

View File

@@ -146,6 +146,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectUserVo"/>
where u.phonenumber = #{phoneNumber} and u.del_flag = '0'
</select>
<select id="findByPhoneNumberStartingWith" parameterType="String" resultMap="SysUserResult">
<include refid="selectUserVo"/>
where u.phonenumber = CONCAT(#{phoneNumber},"%") and u.del_flag = '0'
</select>
<insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">
insert into sys_user(