Mybatis关于int类型字段的判断

出现问题: 有一个字段waterNum 为int类型,在更新语句时判断不为null或空字符串时,更新该字段,问题在于,当waterNum为0的时候,该字段不更新了web 代码示例:bash <if test="waterNum!=null and waterNum!=''"> ,waterNum = #{waterNum} </if> 问题缘由: Mybatis在判断int类型时,0认为是
相关文章
相关标签/搜索