fix: 使用 QueryColumn 无法构建 UPDATE SET 语句。

This commit is contained in:
Suomm 2023-08-27 08:42:07 +08:00
parent 00bb32161d
commit 82f527eecf

View File

@ -559,11 +559,11 @@ public class TableInfo {
return Collections.emptySet();
}
for (String property : updates.keySet()) {
// String column = getColumnByProperty(property);
String column = propertyColumnMapping.get(property);
if (column == null) {
continue;
}
String column = getColumnByProperty(property);
// String column = propertyColumnMapping.get(property);
// if (column == null) {
// continue;
// }
if (onUpdateColumns != null && onUpdateColumns.containsKey(column)) {
@ -638,10 +638,11 @@ public class TableInfo {
}
for (String property : updates.keySet()) {
String column = propertyColumnMapping.get(property);
if (column == null) {
continue;
}
String column = getColumnByProperty(property);
// String column = propertyColumnMapping.get(property);
// if (column == null) {
// continue;
// }
if (onUpdateColumns != null && onUpdateColumns.containsKey(column)) {