From 9109ee4d0553b124c4af072486b176bd61d58217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zhaobing=E2=80=99?= Date: Fri, 22 Sep 2023 16:05:18 +0800 Subject: [PATCH] feat:fix bugs --- api/app/lib/schedule/workOrder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/lib/schedule/workOrder.js b/api/app/lib/schedule/workOrder.js index d71da5a..591894e 100644 --- a/api/app/lib/schedule/workOrder.js +++ b/api/app/lib/schedule/workOrder.js @@ -78,7 +78,7 @@ module.exports = function (app, opts,ctx) { formSchema: JSON.parse(f.formSchema), formData: JSON.parse(f.formData) }) - const res=await models.Workorder.create({ + const res=await models.FormDataTable.create({ projectId:parseData.pomsProjectId.value || null, formname:procinstsVariables.body.find(t => t.name == 'fsEmisBusinessName') ? procinstsVariables.body.find(t => t.name == 'fsEmisBusinessName').value : '', state: f.state||null,