diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java index f6b4866..3560e16 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java @@ -542,7 +542,7 @@ public class SysUserServiceImpl implements ISysUserService @Override public List queryUserByPhone(String phonenumber) { LambdaQueryWrapper wrapper=new LambdaQueryWrapper<>(); - wrapper.select(SysUser::getUserId,SysUser::getPhonenumber).like(SysUser::getPhonenumber,phonenumber); + wrapper.select(SysUser::getUserId,SysUser::getPhonenumber).eq(SysUser::getDelFlag,"0").like(SysUser::getPhonenumber,phonenumber); return userMapper.selectList(wrapper); } }