From 2ba26594e3f2f44a61510d3cecf65fb7a4a6f72d Mon Sep 17 00:00:00 2001 From: Ranyunqiao <2499115710@qq.com> Date: Wed, 24 Jun 2026 16:16:51 +0800 Subject: [PATCH] bug 808 --- ...__update_key_tcm_syndromes_update_time.sql | 9 + .../diagnosis/addDiagnosisDialog.vue | 4 +- .../diagnosis/chineseMedicineDialog.vue | 167 ++++++++++++++- .../home/components/diagnosis/diagnosis.vue | 193 ++++++++++++++++-- .../home/components/diagnosis/index.vue | 2 +- 5 files changed, 347 insertions(+), 28 deletions(-) create mode 100644 healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V20260624_3__update_key_tcm_syndromes_update_time.sql diff --git a/healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V20260624_3__update_key_tcm_syndromes_update_time.sql b/healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V20260624_3__update_key_tcm_syndromes_update_time.sql new file mode 100644 index 000000000..7c652a854 --- /dev/null +++ b/healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V20260624_3__update_key_tcm_syndromes_update_time.sql @@ -0,0 +1,9 @@ +-- Initialize update_time for all TCM syndromes to a default past timestamp so they don't sort before active ones in nulls-first ORDER BY +UPDATE cli_condition_definition +SET update_time = '2000-01-01 00:00:00' +WHERE source_enum = 6; + +-- Set update_time for the 8 core TCM syndromes so that they sort at the top of the list +UPDATE cli_condition_definition +SET update_time = CURRENT_TIMESTAMP +WHERE source_enum = 6 AND name IN ('阴证', '阳证', '寒证', '热证', '虚证', '实证', '闭证', '脱证'); diff --git a/healthlink-his-ui/src/views/inpatientDoctor/home/components/diagnosis/addDiagnosisDialog.vue b/healthlink-his-ui/src/views/inpatientDoctor/home/components/diagnosis/addDiagnosisDialog.vue index 5d00897c3..1f434f9e5 100755 --- a/healthlink-his-ui/src/views/inpatientDoctor/home/components/diagnosis/addDiagnosisDialog.vue +++ b/healthlink-his-ui/src/views/inpatientDoctor/home/components/diagnosis/addDiagnosisDialog.vue @@ -1,4 +1,4 @@ -