fix(chargemanage): 修复门诊挂号退号状态检查逻辑
- 添加待诊状态检查,只允许待诊状态的患者退号 - 防止已接诊患者进行退号操作 - 完善退号业务流程的状态验证机制
This commit is contained in:
@@ -247,6 +247,10 @@ public class OutpatientRegistrationAppServiceImpl implements IOutpatientRegistra
|
|||||||
if (EncounterStatus.CANCELLED.getValue().equals(byId.getStatusEnum())) {
|
if (EncounterStatus.CANCELLED.getValue().equals(byId.getStatusEnum())) {
|
||||||
return R.fail(null, "该患者已经退号,请勿重复退号");
|
return R.fail(null, "该患者已经退号,请勿重复退号");
|
||||||
}
|
}
|
||||||
|
// 只有待诊状态才能退号
|
||||||
|
if (!EncounterStatus.PLANNED.getValue().equals(byId.getStatusEnum())) {
|
||||||
|
return R.fail(null, "该患者医生已接诊,不能退号!");
|
||||||
|
}
|
||||||
iEncounterService.returnRegister(cancelRegPaymentDto.getEncounterId());
|
iEncounterService.returnRegister(cancelRegPaymentDto.getEncounterId());
|
||||||
// 查询账户信息
|
// 查询账户信息
|
||||||
Account account = iAccountService
|
Account account = iAccountService
|
||||||
|
|||||||
Reference in New Issue
Block a user