Mysql int类型 传参 取不到正确的值 <if test="state != null and state = 1 ">

             <if test="state != null and state == 1 ">
                 AND d.state != 0
             </if>
             <if test="state != null and state == 0 ">
                 AND d.state = 0
             </if>

 要使用 ==

posted @ 2020-06-12 15:34  wf.zhang  阅读(765)  评论(0编辑  收藏  举报