jyy
2021-01-25 949efdc17fa833f6511c0e5902057f3be0fe72c4
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
package com.matrix.core.web;
 
import java.util.List;
 
import com.matrix.core.pojo.PaginationVO;
 
/**
 * 
 *  所有业务service的基础类
 * @author:姜友瑶
 * @date 2016年8月28日
 */
public interface BaseServices<T> {
 
    /**
     * 新增记录
     * 
     * @author JIANGYOUYAO
     * @email 935090232@qq.com
     * @date 2017年11月29日
     * @param obje
     * @return
     */
    public int add(T obje);
 
    /**
     * 更新记录
     * 
     * @author JIANGYOUYAO
     * @email 935090232@qq.com
     * @date 2017年11月29日
     * @param oldValue
     * @param newValue
     * @return
     */
    public int modifyByMap(T oldValue, T newValue);
 
    /**
     * 批量删除记录
     * 
     * @author JIANGYOUYAO
     * @email 935090232@qq.com
     * @date 2017年11月29日
     * @param list
     * @return
     */
    public  int remove(List<String> list);
 
    /**
     * 根据id删除记录
     * 
     * @author JIANGYOUYAO
     * @email 935090232@qq.com
     * @date 2017年11月29日
     * @param id
     * @return
     */
    public int removeById(String id);
 
    /**
     * 分页查询记录
     * 
     * @author JIANGYOUYAO
     * @email 935090232@qq.com
     * @date 2017年11月29日
     * @param obje
     * @param pageVo
     * @return
     */
    public List<T> findInPage(T obje, PaginationVO pageVo);
 
    /**
     * 根据对象查询记录
     * 
     * @author JIANGYOUYAO
     * @email 935090232@qq.com
     * @date 2017年11月29日
     * @param obje
     * @return
     */
    public List<T> findByModel(T obje);
 
    /**
     * 统计记录数记录
     * 
     * @author JIANGYOUYAO
     * @email 935090232@qq.com
     * @date 2017年11月29日
     * @param obje
     * @return
     */
    public int findTotal(T obje);
 
    /**
     * 根据id查询记录
     * 
     * @author JIANGYOUYAO
     * @email 935090232@qq.com
     * @date 2017年11月29日
     * @param id
     * @return
     */
    public T findById(String id);
 
 
}