From 7f4c237d23d8c912bf80312279b203b462f5ac7f Mon Sep 17 00:00:00 2001 From: lai <371757574@qq.com> Date: Tue, 30 Jan 2024 18:20:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=962=E5=B0=8F=E6=97=B6=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/perfManage/goldTarget.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/api/perfManage/goldTarget.ts b/src/api/perfManage/goldTarget.ts index 6d4c5eb0..550f1aeb 100644 --- a/src/api/perfManage/goldTarget.ts +++ b/src/api/perfManage/goldTarget.ts @@ -125,7 +125,7 @@ export async function getGoldTitleByNE(neType: string) { export async function listUPFData(timeArr: any) { const initTime: Date = new Date(); const twentyFourHoursAgo: Date = new Date( - initTime.getTime() - 10 * 60 * 1000 + initTime.getTime() - 60 * 60 * 1000 ); return await Promise.allSettled([ @@ -137,13 +137,6 @@ export async function listUPFData(timeArr: any) { SQL: `SELECT gold_kpi.*,kpi_title.en_title FROM gold_kpi LEFT JOIN kpi_title on gold_kpi.kpi_id=kpi_title.kpi_id where 1=1 and gold_kpi.kpi_id ='UPF.06' and timestamp BETWEEN '${parseDateToStr( twentyFourHoursAgo )}' AND '${parseDateToStr(initTime)}' `, - // SQL: `SELECT gold_kpi.kpi_id, sum(gold_kpi.value) as index, kpi_title.en_title - // FROM gold_kpi - // LEFT JOIN kpi_title on gold_kpi.kpi_id=kpi_title.kpi_id - // WHERE 1=1 - // AND gold_kpi.kpi_id ='UPF.06' - // AND timestamp BETWEEN '${timeArr[0]}' AND '${timeArr[1]}' - // GROUP BY gold_kpi.kpi_id, kpi_title.en_title`, }, timeout: 60_000, }),