修复:百色中学排行榜统计金额和仪表盘的统计数不一致的问题

This commit is contained in:
2025-07-31 12:49:17 +08:00
parent 6f4ff3f8fb
commit 20f7c99fed
11 changed files with 1430 additions and 28 deletions

View File

@@ -18,3 +18,20 @@ export async function pageBszxOrder(params: ShopOrderParam) {
}
return Promise.reject(new Error(res.data.message));
}
/**
* 统计订单总金额(只统计有效订单)
*/
export async function bszxOrderTotal(params?: ShopOrderParam) {
const res = await request.get<ApiResult<ShopOrder[]>>(
MODULES_API_URL + '/bszx/bszx-order/total',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}