摘要: //不加last(“desc”)默认就是升序,加上是降序方式List<Employee> list=empployeeMapper.selecList( new EntityWrapper<Employee> () .eq("gender",0) .orderBy("age") .last("des 阅读全文
posted @ 2021-09-15 21:27 lemmon_water 阅读(11864) 评论(0) 推荐(0)
摘要: 有时候数据表的字段是下划线组合方式,而实体类中使用的是驼峰命名方式,我们在查询结果的时候出现部分数据不能正常显示: application.yml中开启下划线转驼峰: mybatis: #数据表的字段下划线转驼峰开启 configuration: map-underscore-to-camel-ca 阅读全文
posted @ 2021-09-15 20:56 lemmon_water 阅读(888) 评论(0) 推荐(0)