开发者社区 问答 正文

mybatis if test能比较数字吗??报错

报错

The value of attribute "test" associated with an element type "if" must not contain the '<' character.

展开
收起
爱吃鱼的程序员 2020-06-07 16:54:52 2659 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
                        <p>e1 lte e2:小于等于,其他gt(大于),gte(大于等于)</p>
    

    具体参考这里:

    https://blog.csdn.net/isea533/article/details/50061705

     

    这个要比XML特殊字符写额外的 CDATA 更为简洁。

     

                                回复 <a class="referer" target="_blank">@蓝水晶飞机</a>  : 感谢,的确如此
                        
    
                            最坑的是枚举常量,只好取其name来比对。
                        
    
                            lt 就是 less then,e就是equals,gt就是greater then
                        
    
                            delay gte 4 and delay lt 9
                        
    
                        两种方法  一种是  <![CDATA[ ]]>   另一种是 &lt;  &gt; 
    
    2020-06-07 16:55:03
    赞同 展开评论