From 59faabde50ab489cc8980fb7ebcdecfac08bb42d Mon Sep 17 00:00:00 2001 From: deartibers <947466799@qq.com> Date: Mon, 24 Oct 2022 09:10:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=B7=E5=81=87=E5=8A=A0=E7=8F=AD=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/member/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/app/lib/controllers/member/index.js b/api/app/lib/controllers/member/index.js index 9aacd54..fc6a824 100644 --- a/api/app/lib/controllers/member/index.js +++ b/api/app/lib/controllers/member/index.js @@ -375,7 +375,7 @@ async function overTimeStatistics (ctx) { let returnD = { ...(statisticRes.length ? statisticRes[0] : {}), data: dataRes, - dayStatisticData: statisticDayRes + dayStatisticData: statisticDayRes.sort((a,b)=>moment(a.day)-moment(b.day)) } ctx.status = 200; ctx.body = returnD @@ -465,7 +465,7 @@ async function vacateStatistics (ctx) { let returnD = { statistic: statisticRes, data: dataRes, - dayStatisticData: statisticDayRes + dayStatisticData: statisticDayRes.sort((a,b)=>moment(a.day)-moment(b.day)) } ctx.status = 200; ctx.body = returnD