shichongfu
2023-04-25 ce0b49552668d3331055e2b1a1447a743dc54939
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
package com.product.org.admin.service.idel;
 
import java.util.List;
 
import com.product.core.entity.DataTableEntity;
import com.product.core.entity.FieldSetEntity;
import com.product.core.exception.BaseException;
 
/**
 * 视图管理  接口层
 * @author xin.luo
 * date 2020-05-30 11:58:42
 * interface IViewTableService
 */
public interface IViewTableService {
    /**
     * 创建视图
     * @param viewTable 视图field
     * @return
     * @throws BaseException
     */
    String addAView(FieldSetEntity viewTable)throws BaseException;
    /**
     * 修改表名称
     * @param fieldSet 视图field
     * @return
     * @throws BaseException
     */
    boolean updateTableName(FieldSetEntity fieldSet)throws BaseException;
    /**
     * 只添加field信息
     * @param data 视图字段数据
     * @return
     * @throws BaseException
     */
    List<String> addFieldInfo(DataTableEntity data, String table_uuid)throws BaseException;
    /**
     * 只修改field信息
     * @param data  视图字段数据
     * @return
     * @throws BaseException
     */
    Boolean upFieldInfo(DataTableEntity data)throws BaseException;
    /**
     * 修改视图sql  并删除之前字段
     * @param fieldSet 视图信息field
     * @return
     * @throws BaseException
     */
    boolean updateViewSql(FieldSetEntity fieldSet)throws BaseException;
    /**
     * 执行sql
     * @param view_sql  执行的sql
     * @return
     * @throws BaseException
     */
    DataTableEntity runSql(String view_sql)throws BaseException;
    /**
     * 传入表UUID    删除相应的表
     * @param uuid 表uuid数组
     * @return
     * @throws BaseException
     */
    boolean delTable(String[] uuid) throws BaseException;
    /**
     * 获取表信息
     * @param table_uuid  表uuid
     * @return
     * @throws BaseException
     */
    FieldSetEntity getTableInfo(String table_uuid)throws BaseException;
    /**
     * 获取所有视图
     * @param fse  过滤或分页条件
     * @return
     * @throws BaseException
     */
    DataTableEntity getViewTableAll(FieldSetEntity fse)throws BaseException;
 
    /**
     * 如果是子公司 将子公司单位ID添加至视图名
     * @param fse  过滤或分页条件
     * @return
     * @throws BaseException
     */
    void addNameSubsidiary(FieldSetEntity fse)throws BaseException;
}