根据状态进行检索时,传递0值到后台,mybaits判断时直接当空值处理了
暂时解决办法
<if test="status !=null and status !='' or status == 0">
and STATUS = #{status,jdbcType=VARCHAR}
</if>
根据状态进行检索时,传递0值到后台,mybaits判断时直接当空值处理了
暂时解决办法
<if test="status !=null and status !='' or status == 0">
and STATUS = #{status,jdbcType=VARCHAR}
</if>