除了利用时间段进行查询外,还有一个方法:

利用mybatis中的函数,将datetime转为date

<if test="purch_date!= null and purch_date!=''">
  date(purch_date) = #{purch_date}
</if>

相关文章:

  • 2021-12-28
  • 2021-12-03
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-28
  • 2021-08-17
  • 2021-11-19
  • 2021-10-14
  • 2021-11-05
  • 2022-12-23
相关资源
相似解决方案