mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 01:28:24 +08:00
fix: 使用 QueryColumn 无法构建 UPDATE SET 语句。
This commit is contained in:
parent
00bb32161d
commit
82f527eecf
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user