fix: 【桌面版】api数据源全量更新-简单重复-更新记录为空

This commit is contained in:
taojinlong
2025-01-09 13:57:23 +08:00
committed by xuwei-fit2cloud
parent 0a880fea17
commit ba46b7ee42

View File

@@ -15,7 +15,7 @@ import java.util.List;
public class H2EngineProvider extends EngineProvider {
private static final String creatTableSql =
"CREATE TABLE IF NOT EXISTS `TABLE_NAME`" +
"CREATE TABLE IF NOT EXISTS \"TABLE_NAME\"" +
"Column_Fields;";
@@ -25,7 +25,7 @@ public class H2EngineProvider extends EngineProvider {
}
@Override
public String insertSql(String dsType, String tableName, DatasourceServer.UpdateType extractType, List<String[]> dataList, int page, int pageNumber,List<TableField> tableFields) {
public String insertSql(String dsType, String tableName, DatasourceServer.UpdateType extractType, List<String[]> dataList, int page, int pageNumber, List<TableField> tableFields) {
String engineTableName;
switch (extractType) {
case all_scope:
@@ -35,7 +35,7 @@ public class H2EngineProvider extends EngineProvider {
engineTableName = TableUtils.tableName(tableName);
break;
}
String insertSql = "INSERT INTO `TABLE_NAME` VALUES ".replace("TABLE_NAME", engineTableName);
String insertSql = "INSERT INTO \"TABLE_NAME\" VALUES ".replace("TABLE_NAME", engineTableName);
StringBuffer values = new StringBuffer();
Integer realSize = page * pageNumber < dataList.size() ? page * pageNumber : dataList.size();