fix 补全事务注解 异常回滚

This commit is contained in:
疯狂的狮子li
2021-12-02 18:50:50 +08:00
parent 2c3f1c28e5
commit 6046282235
4 changed files with 15 additions and 15 deletions

View File

@ -120,7 +120,7 @@ public class GenTableServiceImpl implements IGenTableService
* @return 结果
*/
@Override
@Transactional
@Transactional(rollbackFor = Exception.class)
public void updateGenTable(GenTable genTable)
{
String options = JSON.toJSONString(genTable.getParams());
@ -142,7 +142,7 @@ public class GenTableServiceImpl implements IGenTableService
* @return 结果
*/
@Override
@Transactional
@Transactional(rollbackFor = Exception.class)
public void deleteGenTableByIds(Long[] tableIds)
{
genTableMapper.deleteGenTableByIds(tableIds);
@ -155,7 +155,7 @@ public class GenTableServiceImpl implements IGenTableService
* @param tableList 导入表列表
*/
@Override
@Transactional
@Transactional(rollbackFor = Exception.class)
public void importGenTable(List<GenTable> tableList)
{
String operName = SecurityUtils.getUsername();
@ -281,7 +281,7 @@ public class GenTableServiceImpl implements IGenTableService
* @param tableName 表名称
*/
@Override
@Transactional
@Transactional(rollbackFor = Exception.class)
public void synchDb(String tableName)
{
GenTable table = genTableMapper.selectGenTableByName(tableName);