mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 09:38:26 +08:00
optimize forSelectOneEntityById close #I73SJY
This commit is contained in:
parent
e86adbfee6
commit
8a33c2da1f
@ -647,7 +647,7 @@ public class CommonsDialectImpl implements IDialect {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String forSelectOneEntityById(TableInfo tableInfo) {
|
public String forSelectOneEntityById(TableInfo tableInfo) {
|
||||||
StringBuilder sql = buildSelectColumnSql(null, tableInfo.getDefaultQueryColumn(), null);
|
StringBuilder sql = buildSelectColumnSql(null, null, null);
|
||||||
sql.append(" FROM ").append(wrap(tableInfo.getTableName()));
|
sql.append(" FROM ").append(wrap(tableInfo.getTableName()));
|
||||||
sql.append(" WHERE ");
|
sql.append(" WHERE ");
|
||||||
String[] pKeys = tableInfo.getPrimaryKeys();
|
String[] pKeys = tableInfo.getPrimaryKeys();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user