package com.yn.bftl.thirdparty.modules.chinaums.service.impl;

import com.yn.bftl.common.modules.base.entity.BaseElecBank;
import com.yn.bftl.thirdparty.modules.chinaums.repository.BaseElecBankRepository;
import com.yn.bftl.thirdparty.modules.chinaums.service.BaseElecBankService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service
public class BaseElecBankServiceImpl implements BaseElecBankService {

    @Resource
    private BaseElecBankRepository baseElecBankRepository;

    public BaseElecBank getByBankName(String bankName) {
        return baseElecBankRepository.findByBankName(bankName);
    }

}
