package com.kym.service.impl;

import com.github.yulichang.base.MPJBaseServiceImpl;
import com.kym.entity.Account;
import com.kym.mapper.AccountMapper;
import com.kym.service.AccountService;
import org.springframework.stereotype.Service;


/**
 * <p>
 * 用户账户表 服务实现类
 * </p>
 *
 * @author skyline
 * @since 2023-08-07
 */
@Service
public class AccountServiceImpl extends MPJBaseServiceImpl<AccountMapper, Account> implements AccountService {


    @Override
    public Account getAccountByUserId(Long userId) {
        return lambdaQuery().eq(Account::getUserId, userId).one();
    }

}
