From 85555daac17122b4b67bad894f9d95f954b6c022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zhaobing=E2=80=99?= Date: Fri, 22 Sep 2023 12:31:55 +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 a53c92f..741db64 100644 --- a/api/app/lib/schedule/workOrder.js +++ b/api/app/lib/schedule/workOrder.js @@ -79,7 +79,7 @@ module.exports = function (app, opts,ctx) { }) const res=await models.Workorder.create({ projectId:parseData.pomsProjectId.value || null, - formname:procinstsVariables.find(item=>item.id===f.procinstId).name||null, + formname:procinstsVariables.body.find(item=>item.id===f.procinstId).name||null, state: f.state||null, endTime:f.endTime||null, startTime:f.createTime||null