diff --git a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/check/controller/ExamApplyController.java b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/check/controller/ExamApplyController.java index 4e857d57..15d130b9 100644 --- a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/check/controller/ExamApplyController.java +++ b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/check/controller/ExamApplyController.java @@ -212,6 +212,8 @@ public class ExamApplyController extends BaseController { // 检查申请不走诊疗定义,设置为0占位(数据库有NOT NULL约束) serviceRequest.setActivityId(0L); + // 🔧 Bug #407修复:设置医嘱类型为诊疗(3),避免被错误识别为中成药 + serviceRequest.setCategoryEnum(3); // 患者和就诊信息 —— 使用前端传递的数字型ID if (dto.getPatientIdNum() != null) { @@ -389,6 +391,8 @@ public class ExamApplyController extends BaseController { serviceRequest.setBasedOnTable("exam_apply"); serviceRequest.setBasedOnId(examApply.getId()); serviceRequest.setActivityId(0L); + // 🔧 Bug #407修复:设置医嘱类型为诊疗(3),避免被错误识别为中成药 + serviceRequest.setCategoryEnum(3); if (dto.getPatientIdNum() != null) { serviceRequest.setPatientId(dto.getPatientIdNum());