Browse Source

feat:工单数据抽取

dev
zhaobing’ 1 year ago
parent
commit
bd4e3e2401
  1. 4
      api/app/lib/schedule/workOrder.js

4
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

Loading…
Cancel
Save