比较当天时间(参数什么格式都行Date、String、LocalDate)
date_format(create_time,'%Y-%m-%d') = #{dateTime}
比较日期段(参数什么格式都行Date、String、LocalDate)
and forDate >= #{startDate} and forDate <= #{endDate}
时间段可以把两个合起来
更多推荐
mybatis(mybatis-plus)时间比较
比较当天时间(参数什么格式都行Date、String、LocalDate)
date_format(create_time,'%Y-%m-%d') = #{dateTime}
比较日期段(参数什么格式都行Date、String、LocalDate)
and forDate >= #{startDate} and forDate <= #{endDate}
时间段可以把两个合起来
更多推荐
mybatis(mybatis-plus)时间比较
发布评论