Fix Bug #545: [门诊医生站-诊断-报卡] 长效诊断标识设置保存就清空 — 根因:getEncounterDiagnosis查询SQL(DoctorStationDiagnosisAppMapper.xml)未包含long_term_flag字段且DiagnosisQueryDto缺少对应属性,导致保存成功后刷新列表时后端不返回longTermFlag值,前端接收后下拉框清空;修复:1) SQL新增T1.long_term_flag AS longTermField; 2) DTO新增longTermFlag属性
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -96,6 +96,11 @@ public class DiagnosisQueryDto {
|
|||||||
*/
|
*/
|
||||||
private String diagnosisDoctor;
|
private String diagnosisDoctor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 长效诊断标识
|
||||||
|
*/
|
||||||
|
private Integer longTermFlag;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否已有传染病报卡(0-无,1-有)
|
* 是否已有传染病报卡(0-无,1-有)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -135,6 +135,7 @@
|
|||||||
T1.onset_date AS onsetDate,
|
T1.onset_date AS onsetDate,
|
||||||
T1.diagnosis_time AS diagnosisTime,
|
T1.diagnosis_time AS diagnosisTime,
|
||||||
T1.doctor AS diagnosisDoctor,
|
T1.doctor AS diagnosisDoctor,
|
||||||
|
T1.long_term_flag AS longTermFlag,
|
||||||
CASE WHEN EXISTS (
|
CASE WHEN EXISTS (
|
||||||
SELECT 1 FROM infectious_card T4
|
SELECT 1 FROM infectious_card T4
|
||||||
WHERE T4.diag_id = T2.id AND T4.delete_flag = '0' AND T4.status >= 1
|
WHERE T4.diag_id = T2.id AND T4.delete_flag = '0' AND T4.status >= 1
|
||||||
|
|||||||
Reference in New Issue
Block a user