使用できません
<if test="status != null and status != '' ">
and z.`status` = #{status}
</if>
正しく使用してください
<if test="status != null">
and z.`status` = #{status}
</if>
それ以外の場合、ステータスが0の場合、ステータスが0または1である複数の状況を照会できます。
使用できません
<if test="status != null and status != '' ">
and z.`status` = #{status}
</if>
正しく使用してください
<if test="status != null">
and z.`status` = #{status}
</if>
それ以外の場合、ステータスが0の場合、ステータスが0または1である複数の状況を照会できます。