查询某一天内所有数据(SQL)
条件
入参:“2022-02-23” (String类型)
数据库表时间:2022-02-23 15:32:42 (datetime)
思路:将数据库表的时间格式化为:年-月-日,然后将传入的参数与时间比较作为查询条件来查询2022-02-23日这一天相关的数据
Sql片段
<if test="params.erpCloseTime!=null and params.erpCloseTime!=''">
and date_format(h.erp_close_time,
原创
2022-02-23 17:42:25 ·
6179 阅读 ·
0 评论