@@ -163,6 +163,16 @@
#{key}
</foreach>
</if>
+ <if test="reqVO.createTime != null and reqVO.createTime.length > 0">
+ <!-- 处理“开始时间”(数组第1位,如 createTime[0] = 2024-01-01 00:00:00) -->
+ <if test="reqVO.createTime[0] != null">
+ AND rdr.create_time >= #{reqVO.createTime[0]}
+ </if>
+ <!-- 处理“结束时间”(数组第2位,如 createTime[1] = 2024-01-31 23:59:59) -->
+ <if test="reqVO.createTime.length > 1 and reqVO.createTime[1] != null">
+ AND rdr.create_time <= #{reqVO.createTime[1]}
ORDER BY
rdr.create_time DESC,
REGEXP_REPLACE ( d.`name`, '[0-9]+', '' ) ASC,