mybatis
故乡的那片天
这个作者很懒,什么都没留下…
展开
-
mybatis的mapper.xml引用其他xml的sql和类中的常量
<sql id="sql_id_org"> <if test="idOrg != null and idOrg != ''"> <choose> <when test="idOrg == @com.common.constant.Constant@ID_ORG_PLATFORM"> and ID_ORG IS NULL </when> <otherwise原创 2020-11-25 20:00:19 · 2492 阅读 · 0 评论 -
mybatis传入字符串分割成数组并且遍历(并判断是否包含逗号)
<if test="stringParam != null and stringParam != ''"> <if test="stringParam.indexOf(',') != -1"> and stringParam in <foreach item="item" index="index" collection="stringParam.split(',')" open="(" separator="," close=")">转载 2020-11-06 09:37:02 · 1515 阅读 · 0 评论 -
mybatis的一些特殊符号标识(大于,小于,等于,不等于)
特殊字符 替代符号 & & < < > > " " ' '小于等于 a<=b a <= b a <![CDATA[<= ]]> b..原创 2020-09-21 15:51:53 · 381 阅读 · 0 评论