@Transient
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date reportDateStart;
@Transient
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date reportDateEnd;
前端传入时间
AND cu.created = ]]> CONCAT(#{reportDateStart}, ' 00:00:00') AND cu.created date_add(#{reportDateEnd}, INTERVAL 1 day)
这样得后台myabtis中查询得时间就为:2021-11-22 00:00:00~2021-11-22 23:59:59 了



