Solve the problem that mybatis pass 0 does not take effect

<if test="params.status or params.status==0">
      AND `status` = #{
    
    params.status}
</if>

Guess you like

Origin blog.csdn.net/qq_37741426/article/details/129932322