update 优化 pr !118 代码结构

This commit is contained in:
疯狂的狮子li
2021-12-02 18:47:18 +08:00
parent 7aea32f48b
commit 7eedf37149
4 changed files with 15 additions and 15 deletions

View File

@ -125,7 +125,7 @@ public class GenTableServiceImpl extends ServicePlusImpl<GenTableMapper, GenTabl
* @return 结果
*/
@Override
@Transactional(rollbackFor = { Exception.class })
@Transactional(rollbackFor = Exception.class)
public void updateGenTable(GenTable genTable) {
String options = JsonUtils.toJsonString(genTable.getParams());
genTable.setOptions(options);
@ -144,7 +144,7 @@ public class GenTableServiceImpl extends ServicePlusImpl<GenTableMapper, GenTabl
* @return 结果
*/
@Override
@Transactional(rollbackFor = { Exception.class })
@Transactional(rollbackFor = Exception.class)
public void deleteGenTableByIds(Long[] tableIds) {
List<Long> ids = Arrays.asList(tableIds);
removeByIds(ids);
@ -157,7 +157,7 @@ public class GenTableServiceImpl extends ServicePlusImpl<GenTableMapper, GenTabl
* @param tableList 导入表列表
*/
@Override
@Transactional(rollbackFor = { Exception.class })
@Transactional(rollbackFor = Exception.class)
public void importGenTable(List<GenTable> tableList) {
String operName = SecurityUtils.getUsername();
try {
@ -271,7 +271,7 @@ public class GenTableServiceImpl extends ServicePlusImpl<GenTableMapper, GenTabl
* @param tableName 表名称
*/
@Override
@Transactional(rollbackFor = { Exception.class })
@Transactional(rollbackFor = Exception.class)
public void synchDb(String tableName) {
GenTable table = baseMapper.selectGenTableByName(tableName);
List<GenTableColumn> tableColumns = table.getColumns();