mybatis if test非空判断数字0为什么是false

矫情吗;* 2023-02-13 11:06 76阅读 0赞

Mybatis Integer判断非空的坑

  1. <if test="executionStatus != null and executionStatus != ''">
  2. and t.execution_status = #{executionStatus}
  3. </if>

如果executionStatus为0,则if判断为false

https://blog.51cto.com/wangguangshuo/1944531

发表评论

表情:
评论列表 (有 0 条评论,76人围观)

还没有评论,来说两句吧...

相关阅读