CreditExchangeRateMapper.java
1.87 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
package com.lhcredit.project.business.creditExchangeRate.mapper;
import com.lhcredit.project.business.creditExchangeRate.domain.CreditExchangeRate;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* 汇率 数据层
*
* @author lhcredit
* @date 2022-06-30
*/
public interface CreditExchangeRateMapper {
/**
* 查询汇率信息
*
* @param id 汇率ID
* @return 汇率信息
*/
public CreditExchangeRate selectCreditExchangeRateById(Integer id);
public CreditExchangeRate selectCreditExchangeRateByStatus(@Param("status") String status,@Param("currency") String currency);
/**
* 查询汇率列表
*
* @param creditExchangeRate 汇率信息
* @return 汇率集合
*/
public List<CreditExchangeRate> selectCreditExchangeRateList(CreditExchangeRate creditExchangeRate);
/**
* 新增汇率
*
* @param creditExchangeRate 汇率信息
* @return 结果
*/
public int insertCreditExchangeRate(CreditExchangeRate creditExchangeRate);
/**
* 修改汇率
*
* @param creditExchangeRate 汇率信息
* @return 结果
*/
public int updateCreditExchangeRate(CreditExchangeRate creditExchangeRate);
/**
*
* @param
* @return
*/
public int updateByCurrency(String currency);
/**
* 删除汇率
*
* @param id 汇率ID
* @return 结果
*/
public int deleteCreditExchangeRateById(Integer id);
/**
* 批量删除汇率
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteCreditExchangeRateByIds(String[] ids);
@Select("select name from billcompanylist where name=#{orgName} limit 1")
String selectBillList(@Param("orgName") String orgName);
}