This commit is contained in:
lik
2026-09-03 18:39:40 +08:00
parent f81f6906f0
commit 1f2da22cae
2 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -36,7 +36,7 @@ class HandlerEscortRecord {
async _listRecords(ctx, forceSelf) {
try {
const { page = 1, pageSize = 20, status, userId, appointmentDate } = ctx.request.query;
const { page = 1, pageSize = 20, status, userId, appointmentDate, healthProfileId } = ctx.request.query;
const effectiveUserId = forceSelf ? ctx.state.user?._id : userId;
// status解析成数组
@@ -51,6 +51,7 @@ class HandlerEscortRecord {
status: statusArray,
userId: effectiveUserId,
appointmentDate,
healthProfileId,
});
return ResponseUtil.success(ctx, { records }, "查询成功");