调整按手机号查询用户接口

master
panqihua 2 years ago
parent 5ac36d3529
commit 19cacf4c48
  1. 2
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java

@ -542,7 +542,7 @@ public class SysUserServiceImpl implements ISysUserService
@Override @Override
public List<SysUser> queryUserByPhone(String phonenumber) { public List<SysUser> queryUserByPhone(String phonenumber) {
LambdaQueryWrapper<SysUser> wrapper=new LambdaQueryWrapper<>(); LambdaQueryWrapper<SysUser> 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); return userMapper.selectList(wrapper);
} }
} }

Loading…
Cancel
Save