@Service public class GenTableServiceImpl extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<GenTableMapper,GenTable> implements IGenTableService
| 构造器和说明 |
|---|
GenTableServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
deleteGenTableByIds(java.lang.Long[] tableIds)
删除业务对象
|
byte[] |
downloadCode(java.lang.String tableName)
生成代码(下载方式)
|
byte[] |
downloadCode(java.lang.String[] tableNames)
批量生成代码(下载方式)
|
void |
generatorCode(java.lang.String tableName)
生成代码(自定义路径)
|
static java.lang.String |
getGenPath(GenTable table,
java.lang.String template)
已过时。
|
void |
importGenTable(java.lang.String dataSourceId,
java.util.List<GenTable> tableList)
导入表结构
|
java.util.Map<java.lang.String,java.lang.String> |
previewCode(java.lang.Long tableId)
预览代码
|
java.util.List<GenTable> |
selectDbTableList(GenTable genTable)
查询据库列表
|
java.util.List<GenTable> |
selectDbTableListByNames(java.lang.String dataSourceId,
java.lang.String[] tableNames)
查询据库列表
|
java.util.List<GenTable> |
selectGenTableAll()
查询所有表信息
|
GenTable |
selectGenTableById(java.lang.Long id)
查询业务信息
|
java.util.List<GenTable> |
selectGenTableList(GenTable genTable)
查询业务列表
|
void |
setPkColumn(GenTable table)
设置主键列信息
|
void |
setSubTable(GenTable table)
设置主子表信息
|
void |
setTableFromOptions(GenTable genTable)
设置代码生成其他选项值
|
void |
synchDb(java.lang.String tableName)
同步数据库
|
void |
updateGenTable(GenTable genTable)
修改业务
|
void |
validateEdit(GenTable genTable)
修改保存参数校验
|
closeSqlSession, currentMapperClass, currentModelClass, executeBatch, executeBatch, executeBatch, getBaseMapper, getEntityClass, getMap, getObj, getOne, getSqlStatement, retBool, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, updateBatchByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, count, getById, getOne, ktQuery, ktUpdate, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeById, removeByIds, removeByMap, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, update, update, update, updateBatchById, updateByIdpublic GenTable selectGenTableById(java.lang.Long id)
selectGenTableById 在接口中 IGenTableServiceid - 业务IDpublic java.util.List<GenTable> selectGenTableList(GenTable genTable)
selectGenTableList 在接口中 IGenTableServicegenTable - 业务信息public java.util.List<GenTable> selectDbTableList(GenTable genTable)
selectDbTableList 在接口中 IGenTableServicegenTable - 业务信息public java.util.List<GenTable> selectDbTableListByNames(java.lang.String dataSourceId, java.lang.String[] tableNames)
selectDbTableListByNames 在接口中 IGenTableServicedataSourceId - 数据源tableNames - 表名称组public java.util.List<GenTable> selectGenTableAll()
selectGenTableAll 在接口中 IGenTableService@Transactional public void updateGenTable(GenTable genTable)
updateGenTable 在接口中 IGenTableServicegenTable - 业务信息@Transactional(rollbackFor=java.lang.Exception.class) public void deleteGenTableByIds(java.lang.Long[] tableIds)
deleteGenTableByIds 在接口中 IGenTableServicetableIds - 需要删除的数据ID@Transactional(rollbackFor=java.lang.Exception.class)
public void importGenTable(java.lang.String dataSourceId,
java.util.List<GenTable> tableList)
importGenTable 在接口中 IGenTableServicedataSourceId - 数据源tableList - 导入表列表public java.util.Map<java.lang.String,java.lang.String> previewCode(java.lang.Long tableId)
previewCode 在接口中 IGenTableServicetableId - 表编号public byte[] downloadCode(java.lang.String tableName)
downloadCode 在接口中 IGenTableServicetableName - 表名称public void generatorCode(java.lang.String tableName)
generatorCode 在接口中 IGenTableServicetableName - 表名称@Transactional public void synchDb(java.lang.String tableName)
synchDb 在接口中 IGenTableServicetableName - 表名称public byte[] downloadCode(java.lang.String[] tableNames)
downloadCode 在接口中 IGenTableServicetableNames - 表数组public void validateEdit(GenTable genTable)
validateEdit 在接口中 IGenTableServicegenTable - 业务信息public void setPkColumn(GenTable table)
table - 业务表信息public void setSubTable(GenTable table)
table - 业务表信息public void setTableFromOptions(GenTable genTable)
genTable - 设置后的生成对象@Deprecated public static java.lang.String getGenPath(GenTable table, java.lang.String template)
table - 业务表信息template - 模板文件路径Copyright © 2021. All Rights Reserved.