package com.kym.service.impl;

import com.kym.entity.RechargeConfig;
import com.kym.mapper.RechargeConfigMapper;
import com.kym.service.RechargeConfigService;
import com.kym.service.mybatisplus.MyBaseServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 支付日志 服务实现类
 * </p>
 *
 * @author skyline
 * @since 2024-11-15
 */
@Service
public class RechargeConfigServiceImpl extends MyBaseServiceImpl<RechargeConfigMapper, RechargeConfig> implements RechargeConfigService {

    @Override
    public RechargeConfig getRechargeConfigByAmount(Integer amount) {
        return lambdaQuery().eq(RechargeConfig::getRechargeAmount, amount).one();
    }
}
