cb939fdf8718caf038b1459386067a31ae06dd90
根因分析: - 前端在 buildSubmitData() 中使用 formData.diagnosisId || null 将空字符串转为 null - 后端 InfectiousDiseaseReportDto.diagId 有 @NotNull 校验,导致 null 值被拒绝 - diagnosisId 来源于 show() 中 diagnosisData?.conditionId || diagnosisData?.definitionId 使用 || 运算符会将 0 等假值跳过,可能导致 ID 丢失 修复内容: 1. show() 函数:使用显式 null/空字符串检查替代 || 运算符,确保 conditionId/definitionId 正确映射 2. handleSubmit():提交前增加 diagnosisId 非空校验,提前拦截并给出友好提示 3. buildSubmitData():diagId 使用 Number() 显式转换,确保发送正确的 Long 值 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Description
No description provided
Languages
Java
49.5%
Vue
44.8%
JavaScript
4.6%
HTML
0.7%
SCSS
0.1%