fix: 修正PostgreSQL时间函数CAST为::类型转换,避免语法错误

This commit is contained in:
关羽
2026-04-09 11:26:59 +08:00
parent f204e46e07
commit 9238044bc1

View File

@@ -298,7 +298,7 @@
AND o.phone LIKE CONCAT('%', #{query.phone}, '%')
</if>
<!-- 5. 核心:按系统时间过滤,只返回未过期的号源 -->
AND (p.schedule_date > CURRENT_DATE OR (p.schedule_date = CURRENT_DATE AND s.expect_time >= CAST(CURRENT_TIME AS TIME)))
AND (p.schedule_date > CURRENT_DATE OR (p.schedule_date = CURRENT_DATE AND s.expect_time >= CURRENT_TIME::TIME))
<!-- 6. 状态过滤 -->
<if test="query.status != null and query.status != '' and query.status != 'all'">
<choose>