MyBatis中的if标签问题:!=null and !=‘‘ 在Integer 0不适用
问题产生
这是项目中遇到的一个问题,记录下来...
先看mybatis映射xml文件里的一段内容:
<sql id="Page_Where_Clause">
<trim prefix="where" prefixOverrides="and|or">
<if test="item.extension.offlinePrint != null and item.extension.offlinePrint != ''">
a
原创
2020-09-16 18:51:49 ·
1025 阅读 ·
0 评论