From bd4e3e24014775a4a1ac926d340b5a77e281d0ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zhaobing=E2=80=99?= Date: Fri, 22 Sep 2023 16:48:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=B7=A5=E5=8D=95=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=8A=BD=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/schedule/workOrder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/app/lib/schedule/workOrder.js b/api/app/lib/schedule/workOrder.js index 591894e..607f810 100644 --- a/api/app/lib/schedule/workOrder.js +++ b/api/app/lib/schedule/workOrder.js @@ -20,14 +20,14 @@ module.exports = function (app, opts,ctx) { const password = "fs-workflow" let lastExecutionTime = null; const { parseProcessData } = app.fs.utils - const startTime = moment() + const startTime = moment().format('YYYY-MM-DD HH:mm:ss') const { models } = app.fs.dc const { clickHouse } = app.fs const { database: camWorkflow } = clickHouse.camWorkflow.opts.config //新建表是否有数据 const rescount=await models.FormDataTable.count() if (lastExecutionTime === null) { - lastExecutionTime = moment().subtract(1, 'hour'); + lastExecutionTime = moment().subtract(1, 'hour').format('YYYY-MM-DD HH:mm:ss') } const formRes = await clickHouse.pepEmis.query( `SELECT