1、不能用 !='' 或 ='' 判断,如: <if test="status != null and status !='' "> </if>
2、判断是否相等用 ==,如:<if test="status != null and status == 1 "> </if>