kimi42345
2020-03-23 5bac93baf5659ce013163f884c9dce41990a860e
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
package com.highdatas.mdm.service;
 
import com.highdatas.mdm.entity.Maintain;
import com.highdatas.mdm.pojo.Result;
import com.highdatas.mdm.pojo.SysAssembleUpdateType;
 
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);
 
    Long getCountByVersion(String maintainId, String tableName, String tableTempName, Integer fromOrderNo, Integer toOrderNo, String whereSegment);
 
    String getFields(String tableName);
    String getFields(String tableName, Maintain maintain);
 
    String getFields(String tableName, String alias);
    String getFields(String tableName, String alias, Maintain maintain);
 
    String getTempFields(String tableName, Maintain maintain);
    String getTempFields(String tableName);
 
    String getTempFields(String tableName, String alias);
    String getTempFields(String tableName, String alias,  Maintain maintain);
 
    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 updateByStdId(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);
    String getUpdateSegment(String tableName, String alias, String fieldsSegment);
 
    Result update(String tableName, String updateSegment, String whereDefault, boolean total);
 
    Result delete(String tableName);
 
    Result deleteById(String tableName, String id);
 
    Result deleteByStdId(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);
 
    Maintain uploadedData(String tableName, SysAssembleUpdateType uploadType, String userId);
}