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
| package com.nq.dao;
|
| import com.nq.pojo.SiteSpread;
| import org.apache.ibatis.annotations.Param;
|
| import java.math.BigDecimal;
| import java.util.List;
|
| /**
| * site_spread
| * @author lr
| * @date 2020/07/01
| */
| public interface SiteSpreadMapper {
|
| /**
| * [新增]
| * @author lr
| * @date 2020/07/01
| **/
| int insert(SiteSpread siteSpread);
|
| /**
| * [刪除]
| * @author lr
| * @date 2020/07/01
| **/
| int delete(int id);
|
| /**
| * [更新]
| * @author lr
| * @date 2020/07/01
| **/
| int update(SiteSpread siteSpread);
|
| /**
| * [查询] 根据主键 id 查询
| * @author lr
| * @date 2020/07/01
| **/
| SiteSpread load(int id);
|
| /**
| * [查询] 分页查询
| * @author lr
| * @date 2020/07/01
| **/
| List<SiteSpread> pageList(@Param("pageNum") int pageNum,@Param("pageSize") int pageSize,@Param("typeName") String typeName);
|
| /**
| * 查询点差费率
| * @author lr
| * @date 2020/07/01
| * applies:涨跌幅
| * turnover:成交额
| * code:股票代码
| * unitprice:股票单价
| **/
| SiteSpread findSpreadRateOne(@Param("applies") BigDecimal applies,@Param("turnover") BigDecimal turnover,@Param("code") String code,@Param("unitprice") BigDecimal unitprice);
|
| }
|
|