mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
!391 Db.selectFirstAndSecondColumnsAsMap(QueryWrapper) 支持(查询结果的第一列作为key,第二列作为value)
Merge pull request !391 from tangxin/main
This commit is contained in:
commit
c2be249a82
@ -291,7 +291,7 @@ public class FlexDefaultResultSetHandler extends DefaultResultSetHandler {
|
||||
if (parentMapping != null) {
|
||||
handleRowValues(rsw, resultMap, null, RowBounds.DEFAULT, parentMapping);
|
||||
} else if (resultHandler == null) {
|
||||
if (resultMap.getId().equals("com.mybatisflex.core.row.RowMapper.selectFirstAndSecondColumnsAsMap")) {
|
||||
if (resultMap.getId().startsWith("com.mybatisflex.core.row.RowMapper.selectFirstAndSecondColumnsAsMap")) {
|
||||
ResultSet resultSet = rsw.getResultSet();
|
||||
skipRows(resultSet, rowBounds);
|
||||
Map<Object, Object> row = new HashMap<>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user