mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-30 03:03:13 +08:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@ -93,7 +93,7 @@ public class RdbDmlController {
|
||||
try {
|
||||
boolean flag = true;
|
||||
ExecuteResultVO executeResult = null;
|
||||
connection.setAutoCommit(false);
|
||||
//connection.setAutoCommit(false);
|
||||
ListResult<ExecuteResult> resultDTOListResult = dlTemplateService.execute(param);
|
||||
List<ExecuteResultVO> resultVOS = rdbWebConverter.dto2vo(resultDTOListResult.getData());
|
||||
if (!CollectionUtils.isEmpty(resultVOS)) {
|
||||
@ -107,7 +107,7 @@ public class RdbDmlController {
|
||||
}
|
||||
}
|
||||
if (flag) {
|
||||
connection.commit();
|
||||
//connection.commit();
|
||||
return DataResult.of(resultVOS.get(0));
|
||||
}else {
|
||||
connection.rollback();
|
||||
|
@ -108,7 +108,7 @@ public class DatabaseExportService {
|
||||
try {
|
||||
export(outputStream, exportOptions);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException("导出失败!请联系开发者,邮箱:963565242@qq.com" + e);
|
||||
throw new RuntimeException("导出失败!请联系开发者" + e);
|
||||
}
|
||||
init();
|
||||
}
|
||||
|
Reference in New Issue
Block a user