package com.ruoyi.basic.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.domain.entity.AppUser;
import com.ruoyi.basic.mapper.YjAppUserMapper;
import com.ruoyi.basic.service.YjAppUserService;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.im.constant.RedisKey;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheConfig;
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));
    }

}
