mybatis-plus
卡卡的喵
这个作者很懒,什么都没留下…
展开
-
mybatis if test判断BigDecimal遇到的坑
<update id="test" parameterType="cn.test.Demo"> update test <trim prefix="set" suffixOverrides=","> <if test="bigDecimalValue != null and bigDecimalValue != ''"> bigDecimal_value = #{bigDec...原创 2021-12-16 17:35:41 · 2004 阅读 · 2 评论 -
通过mybatis-plus来进行物理分页的总结
使用mybatis-plus的分页功能需要以下步骤1.pom.xml添加dependency2.增加PaginationInterceptor3.设置sqlSessionFactory4.自定义mapper方法直接上代码1.我用的是springboot结合mybatis-plus,pom.xml如下<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001...原创 2020-05-18 13:55:27 · 2770 阅读 · 1 评论