kimi
2020-01-13 9edfa82bf71e4bab8e7dc125baa30e1ddd505d71
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
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 MasterDataService {
 
    Result selectById(String tableName, String id);
 
    Result selectList(String tableName);
 
    Result selectList(String tableName, String whereSegment);
    Result selectList(String tableName, String whereSegment, String version);
 
    Result selectList(String tableName, List<String> fieldList, String whereSegment);
    Result selectList(String tableName, List<String> fieldList, String whereSegment,String version);
 
    Result selectList(String tableName, List<String> fields);
 
    String getFields(String tableName);
 
    String getFields(String tableName, String alias);
 
    String getTempFields(String tableName);
 
    String getTempFields(String tableName, String alias);
 
    Result selectListByPageByVersion(String tableName, Integer pageNo, Integer pageSize, boolean findMax);
 
    Result selectListByPageByVersion(String tableName, String whereSegment, Integer pageNo, boolean findMax);
 
    Result selectListByPageByVersion(String tableName, Integer pageNo, String version, boolean findMax);
 
    Result selectListByPageByVersion(String tableName, Integer pageNo, boolean findMax);
 
    Result selectListByPageByVersion(String tableName, String whereSegment, Integer pageno, Integer pageSize, boolean findMax);
 
    Result selectListByPageByVersion(String tableName, List<String> fieldList, String whereSegment, Integer pageNo, boolean findMax);
 
    Result selectListByPageByVersion(String tableName, List<String> fieldList, Integer pageNo, boolean findMax);
 
    Result selectListByPageByVersion(String tableName, List<String> fieldList, String whereSegment, Integer pageNo, Integer pageSize, boolean findMax);
 
    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);
 
    String getUpdateSegment(String tableName, String fieldsSegment);
 
    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);
 
    Result selectListByPageByVersion(String tableName, String whereSegment, Integer pageNo, String version, boolean findMax);
 
    Result selectListByPageByVersion(String tableName, List<String> fieldList, String whereSegment, Integer pageNo, Integer pageSize, String version, boolean findMax);
}