Compare commits

...

2 Commits

Author SHA1 Message Date
d52403f269 fix(#503): 请修复 Bug #503:【住院发退药】发药明细与发药汇总单数据触发时机不一致,存在业务脱节风险
由 AI Agent (guanyu) 自动修复,请查看 diff 确认变更内容。
2026-06-13 18:04:28 +08:00
2148a1b2be 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
2026-06-13 14:38:33 +08:00
3 changed files with 13 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
# HealthLink-HIS 代码模块索引
> 供 LLM 快速定位代码。每个模块列出 Controller → Service → Mapper 关键文件。
> 最后更新: 2026-06-13 12:00 (298 个 Controller)
> 最后更新: 2026-06-13 18:00 (298 个 Controller)
## 关键词 → 模块速查

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;