feat(M08-B): 补统计保洁员筛选
This commit is contained in:
+2
-1
@@ -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}` : ''}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user