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;
|
}
|