From 6cfed27598af2e823d0d67e446a540d2bbf6cbf7 Mon Sep 17 00:00:00 2001 From: yubaolee Date: Mon, 30 Sep 2024 17:21:38 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#I9J6WS=20=E4=BF=AE=E5=A4=8D=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=9B=B4=E6=96=B0=E8=BF=9B=E5=BA=A6=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenAuth.App/FlowInstance/FlowInstanceApp.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/OpenAuth.App/FlowInstance/FlowInstanceApp.cs b/OpenAuth.App/FlowInstance/FlowInstanceApp.cs index 66b32a4e..f18e2a8f 100644 --- a/OpenAuth.App/FlowInstance/FlowInstanceApp.cs +++ b/OpenAuth.App/FlowInstance/FlowInstanceApp.cs @@ -384,7 +384,7 @@ namespace OpenAuth.App } - SugarClient.Updateable(flowInstance); + SugarClient.Updateable(flowInstance).ExecuteCommand(); //给流程创建人发送通知信息 _messageApp.SendMsgTo(flowInstance.CreateUserId, $"你的流程[{flowInstance.CustomName}]已被{user.Name}处理。"); @@ -566,7 +566,7 @@ namespace OpenAuth.App } flowInstance.SchemeContent = JsonHelper.Instance.Serialize(wfruntime.ToSchemeObj()); - SugarClient.Updateable(flowInstance); + SugarClient.Updateable(flowInstance).ExecuteCommand(); SugarClient.Insertable(new FlowInstanceOperationHistory { @@ -578,7 +578,7 @@ namespace OpenAuth.App + wfruntime.currentNode.name + "】【" + DateTime.Now.ToString("yyyy-MM-dd HH:mm") + "】驳回,备注:" + reqest.VerificationOpinion - }); + }).ExecuteCommand(); //给流程创建人发送通知信息 _messageApp.SendMsgTo(flowInstance.CreateUserId, @@ -979,7 +979,7 @@ namespace OpenAuth.App AddTransHistory(wfruntime); - SugarClient.Updateable(flowInstance); + SugarClient.Updateable(flowInstance).ExecuteCommand(); SugarClient.Insertable(new FlowInstanceOperationHistory { @@ -988,7 +988,7 @@ namespace OpenAuth.App CreateUserName = user.Name, CreateDate = DateTime.Now, Content = $"【撤销】由{user.Name}撤销,备注:{request.Description}" - }); + }).ExecuteCommand(); SugarClient.Ado.CommitTran(); } @@ -1025,7 +1025,7 @@ namespace OpenAuth.App ? FlowInstanceStatus.Finished : FlowInstanceStatus.Running); - SugarClient.Updateable(flowInstance); + SugarClient.Updateable(flowInstance).ExecuteCommand(); #endregion 根据运行实例改变当前节点状态 @@ -1039,7 +1039,7 @@ namespace OpenAuth.App CreateDate = DateTime.Now, Content = $"【启动】由用户{user.User.Name}启动" }; - SugarClient.Insertable(processOperationHistoryEntity); + SugarClient.Insertable(processOperationHistoryEntity).ExecuteCommand(); #endregion 流程操作记录