为啥这里的status=3不执行,在输入值为空的时候还是显示出了status值不为3的数据

为啥这里的status=3不执行,在输入值为空的时候还是显示出了status值不为3的数据

代码写的有问题,参照以下写法:
<where>
status=3
<if test="name!=null and name!=''">
and name LIKE concat('%',#{name},'%')
</if>
</where>
若有帮助,谢谢采纳~