mybatis时间类型的比较


<if test="beginTestTime != null and endTestTime != null and beginTestTime != '' and endTestTime != ''">
	AND a.test_time BETWEEN #{beginTestTime} AND #{endTestTime}
</if>
<if test="(beginTestTime == null or beginTestTime == '') and endTestTime != null and endTestTime != ''">
	<![CDATA[ 
	     and a.test_time <= #{endTestTime}
	]]>
</if>
<if test="beginTestTime != null and beginTestTime != '' and (endTestTime == null or endTestTime == '')">
	<![CDATA[ 
	    and a.test_time >= #{beginTestTime}
	]]>
</if>

  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM