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