Fix Bug #552: 根因+修复方案摘要

This commit is contained in:
2026-05-19 15:03:19 +08:00
parent f925731f6f
commit 5e9aaebc7a

View File

@@ -871,6 +871,7 @@
</select> </select>
<!-- 手术项目专用分页查询:仅查手术 + 定价,无库存/草稿库存/取药科室等无关逻辑 --> <!-- 手术项目专用分页查询:仅查手术 + 定价,无库存/草稿库存/取药科室等无关逻辑 -->
<!-- 使用 LIMIT/OFFSET 直接查询,避免 MyBatis Plus 分页插件的 COUNT 开销 -->
<select id="getSurgeryPage" resultType="com.openhis.web.doctorstation.dto.SurgeryItemDto"> <select id="getSurgeryPage" resultType="com.openhis.web.doctorstation.dto.SurgeryItemDto">
SELECT DISTINCT ON (t1.ID) SELECT DISTINCT ON (t1.ID)
t1.ID AS advice_definition_id, t1.ID AS advice_definition_id,
@@ -893,6 +894,7 @@
AND (t1.name ILIKE '%' || #{searchKey} || '%' OR t1.py_str ILIKE '%' || #{searchKey} || '%') AND (t1.name ILIKE '%' || #{searchKey} || '%' OR t1.py_str ILIKE '%' || #{searchKey} || '%')
</if> </if>
ORDER BY t1.ID, t1.name ASC, t2.ID ASC ORDER BY t1.ID, t1.name ASC, t2.ID ASC
LIMIT #{limit} OFFSET #{offset}
</select> </select>
<!-- 检查项目专用分页查询:仅查检查(23) + 定价,无库存/草稿库存/取药科室等无关逻辑 --> <!-- 检查项目专用分页查询:仅查检查(23) + 定价,无库存/草稿库存/取药科室等无关逻辑 -->