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 @@ -