<if test="type ==1">
and DATE_FORMAT(create_date,'%Y-%m-%d') = DATE_FORMAT(now(),'%Y-%m-%d')
</if>
<if test="type ==2">

<![CDATA[
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')
]]>
</if>
<if test="type ==3">
and DATE_FORMAT(create_date,'%Y-%m') = DATE_FORMAT(CURDATE(),'%Y-%m')
</if>

 

orcal的时间比较

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

相关文章:

  • 2022-01-11
  • 2021-09-28
  • 2022-01-08
  • 2021-11-13
  • 2022-01-02
  • 2021-10-04
  • 2021-07-15
  • 2022-12-23
猜你喜欢
  • 2022-03-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
相关资源
相似解决方案