From 47c265d230d7d3dba437fcedd8c2eaf16831dc8d Mon Sep 17 00:00:00 2001 From: Lei OT Date: Mon, 9 Sep 2024 10:00:22 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=90=8C=E6=AD=A5=E4=BF=A1=E6=81=AF,?= =?UTF-8?q?=20=E6=9B=B4=E6=96=B0=E4=BC=98=E5=85=88=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/services/heytripService.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/services/heytripService.js b/server/services/heytripService.js index 1dfdcf5..7d11c76 100644 --- a/server/services/heytripService.js +++ b/server/services/heytripService.js @@ -186,7 +186,7 @@ class Heytrip { }); const stateOffIds = stateOff.map((item) => item.hotel_id); if (!isEmpty(stateOffIds)) { - await HeytripIds.update({ update_flag: 99, priority: 99 }, { where: { hotel_id: stateOffIds } }); + await HeytripIds.update({ update_flag: 99, priority: 99 }, { where: { hotel_id: stateOffIds }, logging: false, }); console.log('updated stateOff', stateOffIds.length); } return { @@ -260,7 +260,7 @@ class Heytrip { WHERE h.hi2_sn IS NULL AND update_flag != 99 -- AND update_flag = 0 - ORDER BY info_exists LIMIT 10` + ORDER BY info_exists,priority LIMIT 10` , { logging: false } ); const res = await this.syncInitHotelLgcDetailsAction(rows, LGC_MAPPED[lgc]); @@ -395,7 +395,7 @@ class Heytrip { const offInfo = allIds.filter((iitem) => !resIds.includes(`${iitem}`)); if (!isEmpty(offInfo)) { const flag = Number(lgcObj.lgc) === 1 ? 2 : 99; // 等待获取中文数据 - const priority = Number(lgcObj.lgc) === 1 ? 0 : 99; + const priority = Number(lgcObj.lgc) === 1 ? 10 : 99; await HeytripIds.update({ update_flag: flag, priority }, { where: { hotel_id: offInfo }, ...sequelizeOptions }); }