![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MybatisPuls
周里奥
学好一门语言
展开
-
mybatisPlus分页查询total,pages为0解决办法
转载转载 2021-09-17 15:09:18 · 704 阅读 · 0 评论 -
MybatisPlus中sql语句比较时间(mysql和oracle中用法不同)
用下面的代码,不需要自己对时间的类型格式化<where> <if test="start_time!=null and start_time!=''"> /*方法一*/ <![CDATA[AND DATE_FORMAT(start_time, '%Y-%m-%d')>= DATE_FORMAT(#{start_time}, '%Y-%m-%d')]]> </if> <if test="en原创 2021-08-27 23:54:31 · 1452 阅读 · 0 评论 -
Wrapper中ge,gt,lt,le的含义
英文缩写英文全拼含义eqequal等于nenot equal不等于gtgranter than大于ltless then小于gegranter than or equal大于等于leless than or equal小于等于原创 2021-08-26 19:23:35 · 5997 阅读 · 0 评论 -
Junit测试MybatisPlus报错java.lang.NullPointerException空指针
也算是今天才知道:普通的测试类是无法获取bean的,所以才会报空指针。因此我们需要让这个测试类能获取到bean。解决办法:首先,确保已经在pom.xml里加入下面的依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId>原创 2021-08-26 17:24:15 · 1623 阅读 · 2 评论