Fix Bug #443: 手术计费:点击签发耗材时异常报错
门诊手术计费生成的耗材在请求基础信息接口中返回的 status_enum 和 content_json 均为 NULL,导致前端无法正确识别"待签发"状态且在签发 时丢失 adviceType 分类信息。 修复:从已 JOIN 的 wor_device_request 表中获取真实的 status_enum 和 content_json 字段,使用 COALESCE 回退到 adm_charge_item。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
4
openhis-server-new/openhis-application/src/main/resources/mapper/doctorstation/DoctorStationAdviceAppMapper.xml
Normal file → Executable file
4
openhis-server-new/openhis-application/src/main/resources/mapper/doctorstation/DoctorStationAdviceAppMapper.xml
Normal file → Executable file
@@ -547,7 +547,7 @@
|
|||||||
CI.enterer_id AS requester_id,
|
CI.enterer_id AS requester_id,
|
||||||
CI.entered_date AS request_time,
|
CI.entered_date AS request_time,
|
||||||
CASE WHEN CI.enterer_id = #{practitionerId} THEN '1' ELSE '0' END AS biz_request_flag,
|
CASE WHEN CI.enterer_id = #{practitionerId} THEN '1' ELSE '0' END AS biz_request_flag,
|
||||||
NULL AS content_json,
|
COALESCE(DR.content_json, CI.content_json) AS content_json,
|
||||||
NULL AS skin_test_flag,
|
NULL AS skin_test_flag,
|
||||||
NULL AS inject_flag,
|
NULL AS inject_flag,
|
||||||
NULL AS group_id,
|
NULL AS group_id,
|
||||||
@@ -556,7 +556,7 @@
|
|||||||
NULL AS lot_number,
|
NULL AS lot_number,
|
||||||
CI.quantity_value AS quantity,
|
CI.quantity_value AS quantity,
|
||||||
CI.quantity_unit AS unit_code,
|
CI.quantity_unit AS unit_code,
|
||||||
NULL AS status_enum,
|
COALESCE(DR.status_enum, CI.status_enum) AS status_enum,
|
||||||
'' AS method_code,
|
'' AS method_code,
|
||||||
'' AS rate_code,
|
'' AS rate_code,
|
||||||
NULL AS dose,
|
NULL AS dose,
|
||||||
|
|||||||
Reference in New Issue
Block a user