mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 09:08:24 +08:00
feat: updateByQuery add dynamic table support
This commit is contained in:
parent
621f151aa5
commit
1ef8729cb6
@ -782,8 +782,12 @@ public class CommonsDialectImpl implements IDialect {
|
||||
Set<String> updateColumns = tableInfo.obtainUpdateColumns(entity, ignoreNulls, true);
|
||||
Map<String, RawValue> rawValueMap = tableInfo.obtainUpdateRawValueMap(entity);
|
||||
|
||||
sql.append(UPDATE).append(forHint(CPI.getHint(queryWrapper)))
|
||||
.append(tableInfo.getWrapSchemaAndTableName(this)).append(SET);
|
||||
sql.append(UPDATE).append(forHint(CPI.getHint(queryWrapper)));
|
||||
if (StringUtil.isNotBlank(tableInfo.getSchema())) {
|
||||
sql.append(wrap(getRealSchema(tableInfo.getSchema()))).append(REFERENCE);
|
||||
}
|
||||
|
||||
sql.append(wrap(getRealTable(tableInfo.getTableName()))).append(SET);
|
||||
|
||||
StringJoiner stringJoiner = new StringJoiner(DELIMITER);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user