From 69b5ab72ff42cdb4367dc28acb4007f059ade728 Mon Sep 17 00:00:00 2001 From: tikkhun Date: Fri, 30 Jan 2026 16:44:13 +0800 Subject: [PATCH] =?UTF-8?q?refactor(Customer/StatisticList):=20=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2=E5=AE=A2=E6=88=B7=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=B8=BA=E7=BB=9F=E8=AE=A1=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=B9=B6=E8=B0=83=E6=95=B4=E6=8E=92=E5=BA=8F=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Customer/StatisticList/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {