feat(M08-B): 补统计保洁员筛选

This commit is contained in:
Codex
2026-06-30 17:56:35 +08:00
parent e6bb5e6dc6
commit 78fb6ed2d0
12 changed files with 95 additions and 23 deletions
+2 -1
View File
@@ -71,12 +71,13 @@ export function listCleaningTasks(
export function getCleaningStatistics(
session: ApiSession,
input: { from?: string; to?: string; storeId?: string } = {}
input: { from?: string; to?: string; storeId?: string; cleanerUserId?: string } = {}
) {
const params = new URLSearchParams();
if (input.from) params.set('from', input.from);
if (input.to) params.set('to', input.to);
if (input.storeId) params.set('storeId', input.storeId);
if (input.cleanerUserId) params.set('cleanerUserId', input.cleanerUserId);
const query = params.toString();
return request<CleaningStatistics>(session, `/cleaning/statistics${query ? `?${query}` : ''}`);
}