diff --git a/src/pages/Customer/StatisticList/index.tsx b/src/pages/Customer/StatisticList/index.tsx index 8ee1138..dbd0bbf 100644 --- a/src/pages/Customer/StatisticList/index.tsx +++ b/src/pages/Customer/StatisticList/index.tsx @@ -2,7 +2,7 @@ import { HistoryOrder } from '@/pages/Statistics/Order'; import { customercontrollerAddtag, customercontrollerDeltag, - customercontrollerGetcustomerlist, + customercontrollerGetcustomerstatisticlist, customercontrollerGettags, customercontrollerSetrate, } from '@/servers/api/customer'; @@ -200,9 +200,9 @@ const ListPage: React.FC = () => { rowKey="id" request={async (params, sorter) => { const key = Object.keys(sorter)[0]; - const { data, success } = await customercontrollerGetcustomerlist({ + const { data, success } = await customercontrollerGetcustomerstatisticlist({ ...params, - ...(key ? { sorterKey: key, sorterValue: sorter[key] } : {}), + ...(key ? { orderBy: `${key}:${sorter[key]}` } : {}), }); return {