因xml文件中的比较符合与标签符合一样,系统为区分比较符合就需要特殊标签包裹下;
<select id="queryRefundTimeBorrowerInfo"
resultType="com.tcwl.vsmp.loanmgt.po.LoanTable">
SELECT *
FROM
loan_table
WHERE
(status = #{status4}
OR status = #{status5}
OR status = #{status6})
AND <![CDATA[ borrow_success_time >= #{format1} ]]>
AND <![CDATA[borrow_success_time <= #{format2} ]]>
AND trim(borrow_success_time) != ''
</select>