mybatis的时间比较 xml 及不解析<=的写法


and DATE_FORMAT(create_date,'%Y-%m-%d') = DATE_FORMAT(now(),'%Y-%m-%d')

and DATE_FORMAT(create_date,'%Y-%m-%d') >= DATE_FORMAT(#{minDate},'%Y-%m-%d')
and DATE_FORMAT(create_date,'%Y-%m-%d') <= DATE_FORMAT(#{maxDate},'%Y-%m-%d')
]]>


and DATE_FORMAT(create_date,'%Y-%m') = DATE_FORMAT(CURDATE(),'%Y-%m')

 

orcal的时间比较

select * from RegulatoryRecord where  regulatorydate < to_date('2018-08-15 15:58:00','yyyy-mm-dd hh24:mi:ss')

你可能感兴趣的:(mybatis的时间比较 xml 及不解析<=的写法)