正常挂号消除退款的记录

This commit is contained in:
2025-11-17 11:04:59 +08:00
parent 491d8f8930
commit 7202151a41
2 changed files with 10 additions and 5 deletions

View File

@@ -272,7 +272,13 @@ public class OutpatientRegistrationAppServiceImpl implements IOutpatientRegistra
if (statusEnumParam != null && !statusEnumParam.isEmpty()) {
try {
Integer statusEnum = Integer.parseInt(statusEnumParam);
queryWrapper.eq("status_enum", statusEnum);
if (statusEnum == -1) {
// -1 表示排除退号记录(正常挂号)
queryWrapper.ne("status_enum", 6);
} else {
// 其他值表示精确匹配
queryWrapper.eq("status_enum", statusEnum);
}
} catch (NumberFormatException e) {
// 忽略无效的参数值
}