在项目中查询时间段的sql语句(时间类型为datetime或date):
= DATE_FORMAT(#{pojo.begintime}, '%Y-%m-%d') ]]>
在项目中查询时间段的sql语句(时间类型为varchar):
AND
tm.excelImport_date>=#{excelImport_date_begin}
AND
tm.excelImport_date <=#{excelImport_date_end}
<小于号 < > 大于号>
页面的源码:
οnclick="WdatePicker({el:'begintime'})" name="qureyBean.begintime"
value="" />
至
οnclick="WdatePicker({el:'endtime'})" name="qureyBean.endtime"
value="" />
页面表现形式截图: