<if test=" startSignTime != null">
and c.sign_time >= DATE_FORMAT(#{startSignTime},'%Y-%m-%d 00:00:00')
</if>
<if test=" endSignTime != null">
and c.sign_time <= DATE_FORMAT(#{endSignTime},'%Y-%m-%d 23:59:59')
</if>
Mybatis,Mysql 筛选条件忽略是时分秒查询包含当天时间段
猜你喜欢
转载自blog.csdn.net/CSDN759322423/article/details/81197140
今日推荐
周排行