style: 移除注释代码

This commit is contained in:
开源海哥 2023-08-27 09:13:47 +08:00
parent feef4b5b17
commit 6a4c3b9a9f

View File

@ -559,12 +559,8 @@ public class TableInfo {
return Collections.emptySet(); return Collections.emptySet();
} }
for (String property : updates.keySet()) { for (String property : updates.keySet()) {
String column = getColumnByProperty(property);
// String column = propertyColumnMapping.get(property);
// if (column == null) {
// continue;
// }
String column = getColumnByProperty(property);
if (onUpdateColumns != null && onUpdateColumns.containsKey(column)) { if (onUpdateColumns != null && onUpdateColumns.containsKey(column)) {
continue; continue;
@ -607,17 +603,6 @@ public class TableInfo {
columns.add(column); columns.add(column);
} }
// 普通 entity ModifyAttrsRecord 忽略 includePrimary 的设置
// if (includePrimary) {
// for (String column : this.primaryKeys) {
// Object value = getColumnValue(metaObject, column);
// if (ignoreNulls && value == null) {
// continue;
// }
// columns.add(column);
// }
// }
} }
return columns; return columns;
} }
@ -639,11 +624,6 @@ public class TableInfo {
for (String property : updates.keySet()) { for (String property : updates.keySet()) {
String column = getColumnByProperty(property); String column = getColumnByProperty(property);
// String column = propertyColumnMapping.get(property);
// if (column == null) {
// continue;
// }
if (onUpdateColumns != null && onUpdateColumns.containsKey(column)) { if (onUpdateColumns != null && onUpdateColumns.containsKey(column)) {
continue; continue;