ICreditExchangeRateService.java
1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package com.lhcredit.project.business.creditExchangeRate.service;
import com.lhcredit.project.business.creditExchangeRate.domain.CreditExchangeRate;
import java.math.BigDecimal;
import java.util.List;
/**
* 汇率 服务层
*
* @author lhcredit
* @date 2022-06-30
*/
public interface ICreditExchangeRateService {
/**
* 查询汇率信息
*
* @param id 汇率ID
* @return 汇率信息
*/
public CreditExchangeRate selectCreditExchangeRateById(Integer id);
/**
* 查询汇率列表
*
* @param creditExchangeRate 汇率信息
* @return 汇率集合
*/
public List<CreditExchangeRate> selectCreditExchangeRateList(CreditExchangeRate creditExchangeRate);
/**
* 字段转换
* @param creditExchangeRate 汇率信息
* @return 汇率信息
*/
public CreditExchangeRate changeModel(CreditExchangeRate creditExchangeRate);
/**
* 列表转换
*
* @param creditExchangeRateList 汇率集合
* @return 汇率集合
*/
public List<CreditExchangeRate> changeModel(List<CreditExchangeRate> creditExchangeRateList);
/**
* 新增汇率
*
* @param creditExchangeRate 汇率信息
* @return 结果
*/
public int insertCreditExchangeRate(CreditExchangeRate creditExchangeRate);
/**
* 修改汇率
*
* @param creditExchangeRate 汇率信息
* @return 结果
*/
public int updateCreditExchangeRate(CreditExchangeRate creditExchangeRate);
/**
* 删除汇率信息
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteCreditExchangeRateByIds(String ids);
/**
* 查询有效的汇率
* @param currency
* @return
*/
public BigDecimal getRatio(String currency);
}