mirror of
https://gitee.com/dromara/dbswitch.git
synced 2025-09-04 11:25:44 +00:00
修正代码错误
This commit is contained in:
@@ -73,11 +73,7 @@ public class MongodbTableDataWriteProvider extends DefaultTableDataWriteProvider
|
||||
for (Object[] row : recordValues) {
|
||||
Map<String, Object> columns = new LinkedHashMap<>(fieldCount);
|
||||
for (int i = 0; i < fieldCount; ++i) {
|
||||
if (row[i] != null && row[i].getClass().getName().equals("org.bson.types.ObjectId")) {
|
||||
columns.put(fieldNames.get(i), String.valueOf(row[i]));
|
||||
} else {
|
||||
columns.put(fieldNames.get(i), row[i]);
|
||||
}
|
||||
columns.put(fieldNames.get(i), row[i]);
|
||||
}
|
||||
rows.add(columns);
|
||||
}
|
||||
|
Reference in New Issue
Block a user