<if test="param.startTime != null">
<![CDATA[ and s.create_time >= #{param.startTime} ]]>
</if>
<if test="param.endTime != null">
<![CDATA[ and s.create_time <= #{param.endTime} ]]>
</if>
mysql根据时间进行筛选
最新推荐文章于 2024-07-22 03:06:22 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)