fix(AdviceManageAppMapper): 补充 3 处 SQL 缺失逗号 — UNION ALL 查询中 advice_definition_id 后缺少逗号
根因: - Bug #613 修复时在 AdviceManageAppMapper.xml 中新增了 advice_definition_id 字段 - 3 处 UNION ALL 子查询中该字段后缺少逗号,导致 SQL 语法错误 - Spring 启动时报 PersistenceException,系统无法启动 修复: - 第 1 子查询: medication_id AS advice_definition_id 后补逗号 - 第 2 子查询: device_def_id AS advice_definition_id 后补逗号 - 第 3 子查询: activity_id AS advice_definition_id 后补逗号
This commit is contained in:
@@ -218,7 +218,7 @@
|
|||||||
T1.therapy_enum AS therapyEnum,
|
T1.therapy_enum AS therapyEnum,
|
||||||
T1.sort_number AS sort_number,
|
T1.sort_number AS sort_number,
|
||||||
T1.based_on_id AS based_on_id,
|
T1.based_on_id AS based_on_id,
|
||||||
T1.medication_id AS advice_definition_id
|
T1.medication_id AS advice_definition_id,
|
||||||
T1.effective_dose_end AS stop_time,
|
T1.effective_dose_end AS stop_time,
|
||||||
T1.update_by AS stop_user_name
|
T1.update_by AS stop_user_name
|
||||||
FROM med_medication_request AS T1
|
FROM med_medication_request AS T1
|
||||||
@@ -274,7 +274,7 @@
|
|||||||
99 AS sort_number,
|
99 AS sort_number,
|
||||||
T1.req_authored_time AS start_time,
|
T1.req_authored_time AS start_time,
|
||||||
T1.based_on_id AS based_on_id,
|
T1.based_on_id AS based_on_id,
|
||||||
T1.device_def_id AS advice_definition_id
|
T1.device_def_id AS advice_definition_id,
|
||||||
NULL AS stop_time,
|
NULL AS stop_time,
|
||||||
'' AS stop_user_name
|
'' AS stop_user_name
|
||||||
FROM wor_device_request AS T1
|
FROM wor_device_request AS T1
|
||||||
@@ -327,7 +327,7 @@
|
|||||||
99 AS sort_number,
|
99 AS sort_number,
|
||||||
T1.occurrence_start_time AS start_time,
|
T1.occurrence_start_time AS start_time,
|
||||||
T1.based_on_id AS based_on_id,
|
T1.based_on_id AS based_on_id,
|
||||||
T1.activity_id AS advice_definition_id
|
T1.activity_id AS advice_definition_id,
|
||||||
T1.occurrence_end_time AS stop_time,
|
T1.occurrence_end_time AS stop_time,
|
||||||
T1.update_by AS stop_user_name
|
T1.update_by AS stop_user_name
|
||||||
FROM wor_service_request AS T1
|
FROM wor_service_request AS T1
|
||||||
|
|||||||
Reference in New Issue
Block a user