<if test="status != null"> and c.status = #{status} </if>
则0和1都可以
所以数字判断的时候,应该是只要判断非空就可以。
<if test="status != null and status != ''"> and c.status = #{status} </if>