![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatisPlus
czczcz_
这个作者很懒,什么都没留下…
展开
-
mybatis中 if标签判断int或者Integer类型时,判断标签不生效问题
mybatis中 if标签判断int或者Integer类型时注意: 如下图所示,其中的fbzt字段是Integer类型的,我加了fbzt !=’'这个判断条件后,该判断就不生效了: <if test="fbzt !=null and fbzt !='' "> and FBZT = #{fbzt} </if> 应该去掉 不用判断是否为"’’"。 <if test="fbzt !=null"> and FBZT = #{fbzt} </if&原创 2021-07-01 09:50:32 · 1377 阅读 · 0 评论 -
MyBatis-plus中的Page出现返回total总为0的问题
在使用MyBatis-plus进行分页的过程中,发现返回的Page中的属性total总为0的问题,但是是有数据的! 原因是另外一个开发,在pom里面加了一个新的分页插件<!--分页插件--> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>...原创 2018-10-23 10:28:40 · 1803 阅读 · 0 评论