kimi
2020-02-14 fa24d347d4c5a796297184f9957b0582dc52c66e
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
package com.highdatas.mdm.service;
 
import com.highdatas.mdm.pojo.Result;
 
import java.util.List;
 
/**
 * @author kimi
 * @description
 * @date 2019-12-17 12:02
 */
 
 
public interface BaseDataService {
 
    Result selectById(String tableName, String id);
 
    Result selectList(String tableName);
 
    Result selectList(String tableName, String whereSegment);
 
    Result selectList(String tableName, List<String> fieldList, String whereSegment);
 
    Result selectList(String tableName, List<String> fields);
 
    String getFields(String tableName);
 
    Result selectListByPage(String tableName, Integer pageNo, Integer pageSize);
 
    Result selectListByPage(String tableName, String whereSegment, Integer pageNo);
 
    Result selectListByPage(String tableName, Integer pageNo);
 
    Result selectListByPage(String tableName, String whereSegment, Integer pageno, Integer pageSize);
 
    Result selectListByPage(String tableName, List<String> fieldList, String whereSegment, Integer pageNo);
 
    Result selectListByPage(String tableName, List<String> fieldList, Integer pageNo);
 
    Result selectListByPage(String tableName, List<String> fieldList, String whereSegment, Integer pageNo, Integer pageSize);
 
    Result insert(String tableName, String fields, String jsonValues);
 
    Result insert(String tableName, String json);
 
    Result updateById(String tableName, String fieldsSegment, String id, boolean total);
 
    Result update(String tableName, String fieldsSegment, boolean total);
 
    Result update(String tableName, String fieldsSegment, String whereSegment);
 
    Result update(String tableName, String updateSegment, String whereDefault, boolean total);
 
    Result delete(String tableName);
 
    Result deleteById(String tableName, String id);
 
    Result delete(String tableName, String whereSegment);
 
}