1.实体类的属性和数据库里面的字段名不一致导致的。
例如:
select studentid as id from student order by ${value}(我实体类属性是id,数据库里的字段名是studentid)
2.用resultMap绑定
select studentid from student order by ${value}
</select>
1.实体类的属性和数据库里面的字段名不一致导致的。
例如:
select studentid as id from student order by ${value}(我实体类属性是id,数据库里的字段名是studentid)
2.用resultMap绑定
select studentid from student order by ${value}
</select>