正常挂号消除退款的记录
This commit is contained in:
@@ -272,7 +272,13 @@ public class OutpatientRegistrationAppServiceImpl implements IOutpatientRegistra
|
|||||||
if (statusEnumParam != null && !statusEnumParam.isEmpty()) {
|
if (statusEnumParam != null && !statusEnumParam.isEmpty()) {
|
||||||
try {
|
try {
|
||||||
Integer statusEnum = Integer.parseInt(statusEnumParam);
|
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) {
|
} catch (NumberFormatException e) {
|
||||||
// 忽略无效的参数值
|
// 忽略无效的参数值
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1156,8 +1156,7 @@ function handleQueryTypeChange() {
|
|||||||
queryParams.value.statusEnum = 6;
|
queryParams.value.statusEnum = 6;
|
||||||
} else if (queryType.value === 'normal') {
|
} else if (queryType.value === 'normal') {
|
||||||
// 查询正常挂号(排除退号状态)
|
// 查询正常挂号(排除退号状态)
|
||||||
queryParams.value.statusEnum = undefined; // 或者设置为非6的状态
|
queryParams.value.statusEnum = -1; // 使用特殊值表示排除退号记录
|
||||||
// 如果需要排除退号,可以在后端处理,这里先不设置
|
|
||||||
} else {
|
} else {
|
||||||
// 查询全部
|
// 查询全部
|
||||||
queryParams.value.statusEnum = undefined;
|
queryParams.value.statusEnum = undefined;
|
||||||
@@ -1174,8 +1173,8 @@ function handleQuery() {
|
|||||||
if (queryType.value === 'returned') {
|
if (queryType.value === 'returned') {
|
||||||
queryParams.value.statusEnum = 6; // 退号状态
|
queryParams.value.statusEnum = 6; // 退号状态
|
||||||
} else if (queryType.value === 'normal') {
|
} else if (queryType.value === 'normal') {
|
||||||
// 正常挂号,不设置statusEnum或排除6
|
// 正常挂号,排除退号记录
|
||||||
queryParams.value.statusEnum = undefined;
|
queryParams.value.statusEnum = -1; // 使用特殊值表示排除退号记录
|
||||||
} else {
|
} else {
|
||||||
// 全部
|
// 全部
|
||||||
queryParams.value.statusEnum = undefined;
|
queryParams.value.statusEnum = undefined;
|
||||||
|
|||||||
Reference in New Issue
Block a user