mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 01:28:24 +08:00
code format
This commit is contained in:
parent
6bb3a4d360
commit
424a5b44a0
@ -36,7 +36,7 @@ public interface IDialect {
|
|||||||
|
|
||||||
String forHint(String hintString);
|
String forHint(String hintString);
|
||||||
|
|
||||||
String forInsertRow(String schema,String tableName, Row row);
|
String forInsertRow(String schema, String tableName, Row row);
|
||||||
|
|
||||||
String forInsertBatchWithFirstRowColumns(String schema, String tableName, List<Row> rows);
|
String forInsertBatchWithFirstRowColumns(String schema, String tableName, List<Row> rows);
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ public interface IDialect {
|
|||||||
|
|
||||||
String forUpdateEntityByQuery(TableInfo tableInfo, Object entity, boolean ignoreNulls, QueryWrapper queryWrapper);
|
String forUpdateEntityByQuery(TableInfo tableInfo, Object entity, boolean ignoreNulls, QueryWrapper queryWrapper);
|
||||||
|
|
||||||
String forUpdateNumberAddByQuery(String schema,String tableName, String fieldName, Number value, QueryWrapper queryWrapper);
|
String forUpdateNumberAddByQuery(String schema, String tableName, String fieldName, Number value, QueryWrapper queryWrapper);
|
||||||
|
|
||||||
String forSelectOneEntityById(TableInfo tableInfo);
|
String forSelectOneEntityById(TableInfo tableInfo);
|
||||||
|
|
||||||
|
|||||||
@ -192,7 +192,7 @@ public class CommonsDialectImpl implements IDialect {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String forUpdateById(String schema,String tableName, Row row) {
|
public String forUpdateById(String schema, String tableName, Row row) {
|
||||||
StringBuilder sql = new StringBuilder();
|
StringBuilder sql = new StringBuilder();
|
||||||
|
|
||||||
Set<String> modifyAttrs = row.obtainModifyAttrs();
|
Set<String> modifyAttrs = row.obtainModifyAttrs();
|
||||||
@ -258,7 +258,7 @@ public class CommonsDialectImpl implements IDialect {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String forUpdateBatchById(String schema,String tableName, List<Row> rows) {
|
public String forUpdateBatchById(String schema, String tableName, List<Row> rows) {
|
||||||
if (rows.size() == 1) {
|
if (rows.size() == 1) {
|
||||||
return forUpdateById(schema, tableName, rows.get(0));
|
return forUpdateById(schema, tableName, rows.get(0));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user