Fix Bug #442: 手术计费:点击"删除"待签发耗材时异常报错,导致操作失败
根因:手术计费场景中"待签发"耗材的 requestId 来自 adm_charge_item.service_id, 当 service_id 为 null 或对应的 wor_device_request 记录不存在时, 后端 removeById(null) 或 removeById(不存在ID) 会抛出异常导致删除失败。 修复策略: - 前端(prescriptionlist.vue): handleDelete 中增加 requestId 有效性校验, 过滤掉 requestId 为 null/undefined/空的项,避免发送无效删除请求 - 后端(DoctorStationAdviceAppServiceImpl.java): handMedication/handDevice/handService 三个删除路径增加 requestId null check,跳过无效记录而非抛出异常 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
5
sql/bug_434_add_incision_level_to_op_schedule.sql
Normal file
5
sql/bug_434_add_incision_level_to_op_schedule.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- Bug #434 修复:为 op_schedule 表添加 incision_level 字段
|
||||
-- 手术安排表需要存储切口类型,以便在编辑弹窗中正确回显和保存
|
||||
ALTER TABLE op_schedule ADD COLUMN IF NOT EXISTS incision_level INT2;
|
||||
|
||||
COMMENT ON COLUMN op_schedule.incision_level IS '手术切口等级 1-I级切口 2-II级切口 3-III级切口 4-IV级切口';
|
||||
Reference in New Issue
Block a user