fix: 修正PostgreSQL时间函数CAST为::类型转换,避免语法错误
This commit is contained in:
@@ -298,7 +298,7 @@
|
|||||||
AND o.phone LIKE CONCAT('%', #{query.phone}, '%')
|
AND o.phone LIKE CONCAT('%', #{query.phone}, '%')
|
||||||
</if>
|
</if>
|
||||||
<!-- 5. 核心:按系统时间过滤,只返回未过期的号源 -->
|
<!-- 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. 状态过滤 -->
|
<!-- 6. 状态过滤 -->
|
||||||
<if test="query.status != null and query.status != '' and query.status != 'all'">
|
<if test="query.status != null and query.status != '' and query.status != 'all'">
|
||||||
<choose>
|
<choose>
|
||||||
|
|||||||
Reference in New Issue
Block a user