You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MPJLambdaWrapper query = new MPJLambdaWrapper<>();
query.select(ZdOrg::getCountyNoSuffix).orderByAsc(ZdOrg::getCountyId);
List data = zdOrgDao.selectList(query);
当前使用版本(必填,否则不予处理)
mybatis-plus-join-boot-starter1.4.12
该问题是如何引起的?(确定最新版也有问题再提!!!)
表里有一个中文命名的字段,使用@TableField(value = "地市") private String city; 使用MPJLambdaWrapper查询后city并没有数据,可以查询,但是city没值。我又使用LambdaQueryWrapper,发现LambdaQueryWrapper可以映射出正确的值。
重现步骤(如果有就写完整)
实体ZdOrg
@TableField(value = "地市")
private String city;
MPJLambdaWrapper query = new MPJLambdaWrapper<>();
query.select(ZdOrg::getCountyNoSuffix).orderByAsc(ZdOrg::getCountyId);
List data = zdOrgDao.selectList(query);
报错信息
TableField填的是中文时,实体字段不能正确映射值,虽然可以查询。LambdaQueryWrapper可以正确映射。
The text was updated successfully, but these errors were encountered: