Fix Bug #434: 门诊手术安排:编辑弹窗中"切口类型"字段未正确回显数据
根因:OpSchedule实体缺失incisionLevel字段,导致BeanUtils.copyProperties无法复制该字段到实体,保存时数据丢失。 修复:在OpSchedule实体中添加incisionLevel字段,移除OpScheduleDto中的重复定义(改为继承)。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -95,11 +95,6 @@ public class OpScheduleDto extends OpSchedule {
|
||||
*/
|
||||
private String surgeryType;
|
||||
|
||||
/**
|
||||
* 切口类型
|
||||
*/
|
||||
private Integer incisionLevel;
|
||||
|
||||
/**
|
||||
* 申请科室
|
||||
*/
|
||||
|
||||
@@ -78,6 +78,9 @@ public class OpSchedule extends HisBaseEntity {
|
||||
/** 手术部位 */
|
||||
private String surgerySite;
|
||||
|
||||
/** 切口类型 */
|
||||
private Integer incisionLevel;
|
||||
|
||||
/** 入院时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
|
||||
private LocalDateTime admissionTime;
|
||||
|
||||
Reference in New Issue
Block a user