kongzy
2024-06-03 022b17044ab6bb284fd6313da91d1d1dfb2d5079
assess-system/src/main/resources/mapper/SysUserMapper.xml
@@ -155,7 +155,7 @@
    </select>
    <select id="checkPhoneUnique" resultType="com.gkhy.assess.system.domain.SysUser">
        select id,phone from sys_user where phone=#{phone} and del_flag=0 limit 1
        select id,phone from sys_user where phone=#{phone} and identity=#{identity} and del_flag=0 limit 1
    </select>
    <select id="checkEmailUnique" resultType="com.gkhy.assess.system.domain.SysUser">
@@ -163,8 +163,8 @@
    </select>
    <select id="getUserByUsernamePhone" resultType="com.gkhy.assess.system.domain.SysUser">
        select id,username,name,password,salt,identity,state,status,del_flag,agency_id from sys_user
        where (username=#{username} or phone=#{username}) and del_flag=0
        select id,username,name,password,salt,identity,id_photo,state,status,del_flag,agency_id from sys_user
        where (username=#{username} or phone=#{username}) and del_flag=0 and identity=#{identity}
    </select>