fix(#752): add DTO fields and null-defaults for isCharged/isRefunded/isExecuted

- ExamApplyDto: add missing Integer fields (isCharged, isRefunded, isExecuted)
  to match entity, enabling proper deserialization from frontend
- ExamApplyController: default null values to 0 for defensive programming
This commit is contained in:
2026-06-13 14:38:33 +08:00
parent 1f46c1e5a1
commit 2148a1b2be
2 changed files with 12 additions and 0 deletions

View File

@@ -169,6 +169,9 @@ public class ExamApplyController extends BaseController {
examApply.setApplyTime(LocalDateTime.now());
examApply.setCreateTime(new Date());
examApply.setApplyStatus(0); // 0=已开单
if (examApply.getIsCharged() == null) examApply.setIsCharged(0);
if (examApply.getIsRefunded() == null) examApply.setIsRefunded(0);
if (examApply.getIsExecuted() == null) examApply.setIsExecuted(0);
// 操作员工号取当前登录用户
try {

View File

@@ -84,6 +84,15 @@ public class ExamApplyDto implements Serializable {
/** 申请单状态 0已开单 1已收费 2已预约 3已签到 4部分报告 5已完告 6作废 */
private Integer applyStatus;
/** 是否已收费 0=否 1=是 */
private Integer isCharged;
/** 是否已退费 0=否 1=是 */
private Integer isRefunded;
/** 是否已执行 0=否 1=是 */
private Integer isExecuted;
/** 就诊ID用于写入门诊医嘱和费用项关联 */
private Long encounterId;