MyBatis中sql实现时间查询的方法

<if test="startTime != null and startTime !=''">
			AND lTime >= #{startTime}
		</if>
		<if test="endTime != null and endTime !=''">
			AND lTime <= #{endTime}
		</if>

  

posted @ 2016-03-01 10:22  深呼吸000  阅读(1100)  评论(0编辑  收藏  举报