Mybatis OGNL表达式书写规范 识别0为空字符串问题 识别单个字符常量为char类型问题 (一)Mybatis识别Integer 0为空字符串问题 Mybatis在xml文件书写sql语句使用if标签时候,经常会判断数据是否为null和’', <where> <if test="status != null and status !=''"> and status = #{status}