| | |
| | | </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"> |
| | |
| | | </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> |
| | | |
| | | |