From e09702da4af595467f7b48097ef046b9d9115c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zhaobing=E2=80=99?= Date: Wed, 29 Nov 2023 10:20:04 +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 b116129..a308fec 100644 --- a/api/app/lib/schedule/workOrder.js +++ b/api/app/lib/schedule/workOrder.js @@ -77,7 +77,7 @@ module.exports = function (app, opts,ctx) { formData: JSON.parse(f.formData) }) const res=await models.FormDataTable.create({ - projectId:parseData.pomsProjectId.value || null, + projectId:parseData?parseData.pomsProjectId.value : null, formname:procinstsVariables.body.find(t => t.name == 'fsEmisBusinessName') ? procinstsVariables.body.find(t => t.name == 'fsEmisBusinessName').value : '', state: f.state||null, endTime:f.endTime||null,