package com.ruoyi.system.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.AppUser;
import com.ruoyi.system.mapper.YjAppUserMapper;
import com.ruoyi.system.service.YjAppUserService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *
 * </p>
 *
 * @author xn
 * @since 2022-10-14
 */
@Service
public class YjAppUserServiceImpl extends ServiceImpl<YjAppUserMapper, AppUser> implements YjAppUserService {


    @Override
    public AppUser selectAppUserByPhone(String phoneNumber)
    {
        return this.getOne(new QueryWrapper<AppUser>().eq("phone_number",phoneNumber));
    }

}
