ExchangeRateMapper.java 1.37 KB
package com.lhcredit.project.business.exchangeRate.mapper;

import com.lhcredit.project.business.exchangeRate.domain.ExchangeRate;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 汇率 数据层
 *
 * @author lhcredit
 * @date 2025-03-18
 */
public interface ExchangeRateMapper {
    /**
     * 查询汇率信息
     *
     * @param id 汇率ID
     * @return 汇率信息
     */
    public ExchangeRate selectExchangeRateById(Integer id);

    /**
     * 查询汇率列表
     *
     * @param exchangeRate 汇率信息
     * @return 汇率集合
     */
    public List<ExchangeRate> selectExchangeRateList(ExchangeRate exchangeRate);

    /**
     * 新增汇率
     *
     * @param exchangeRate 汇率信息
     * @return 结果
     */
    public int insertExchangeRate(ExchangeRate exchangeRate);

    /**
     * 修改汇率
     *
     * @param exchangeRate 汇率信息
     * @return 结果
     */
    public int updateExchangeRate(ExchangeRate exchangeRate);

    /**
     * 删除汇率
     *
     * @param id 汇率ID
     * @return 结果
     */
    public int deleteExchangeRateById(Integer id);

    /**
     * 批量删除汇率
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteExchangeRateByIds(String[] ids);

    public ExchangeRate selectExchangeRateBySourceurrency(String sourceUrrency);

}