fix: 完全回退 Bug #497 引入的 drf.status 字段(数据库不存在)

This commit is contained in:
赵云
2026-05-11 14:06:53 +08:00
committed by 关羽
parent 9215c288d3
commit a43f98cc5a

View File

@@ -12,7 +12,6 @@
drf.desc_json,
drf.requester_id,
drf.create_time,
drf.status,
ap.NAME AS patient_name
FROM doc_request_form AS drf
LEFT JOIN adm_encounter AS ae ON ae.ID = drf.encounter_id
@@ -28,9 +27,6 @@
<if test="endDate != null and endDate != ''">
AND drf.create_time &lt;= (#{endDate}::date + INTERVAL '1 day' - INTERVAL '1 second')
</if>
<if test="status != null and status != ''">
AND drf.status = #{status}::integer
</if>
<if test="keyword != null and keyword != ''">
AND (drf.prescription_no LIKE CONCAT('%', #{keyword}, '%')
OR EXISTS (