fix抄送节点历史插入数据错误

This commit is contained in:
ChenXinXin committed 2024-05-08 16:10:56 +08:00
1 parent c0487eea1e
commit ac2e0d753c
2 files changed
+6 -3

No files matched your search

+5 -2
View File
@@ -102,6 +102,7 @@ class TaskService extends Service {
}
// 下一个节点是抄送节点
if (nextNode.properties.type === "noticeTask") {
noticeInsertData.push({
noticeId: await idGenerateUtil.uuid(),
noticeName: "通知-审批-" + taskId,
@@ -110,12 +111,14 @@ class TaskService extends Service {
pushStatus: "success",
pushAt: dayjs().format("YYYY-MM-DD HH:mm:ss")
})
historyInsertData.push(await this.createTaskHistory({ taskData, taskStatus, type }))
nextNode = await this.getNextNode(taskWorkflow, curNode)
taskData = {
...taskData,
taskConfigId: nextNode.id,
// taskEditUserList: nextNode.properties.userIdList.join(','),
taskEditUserList: nextNode.properties.userIdList.join(','),
taskEditedUserList: null,
taskComment: null,
operationAt: dayjs().format("YYYY-MM-DD HH:mm:ss")
@@ -200,7 +203,7 @@ class TaskService extends Service {
taskExplain: type,
taskHandleDesc: type,
taskCostDuration,
createHistoryBy: userId,
createHistoryBy: taskEditUserList,
createHistoryAt: dayjs().format('YYYY-MM-DD HH:mm:ss')
}
}