From b644b20506b9767eceb15fdd27705ff96b3cfa50 Mon Sep 17 00:00:00 2001 From: ndbs Date: Tue, 20 Sep 2022 15:29:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E9=97=BB=E9=80=9A=E7=9F=A5=E5=85=AC?= =?UTF-8?q?=E5=91=8A=20=E6=B7=BB=E5=8A=A0=E6=92=A4=E9=94=80=E5=92=8C?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E6=9D=A1=E4=BB=B6=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../NodeMethod/OA_NewsMethod.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/OA_NewsMethod.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/OA_NewsMethod.cs index e71203542..5eab69f31 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/OA_NewsMethod.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/OA_NewsMethod.cs @@ -30,7 +30,8 @@ namespace Learun.Application.WorkFlow private MessageRindIBLL messageRindIBLL = new MessageRindBLL(); public void Execute(WfMethodParameter parameter) { - if (parameter.code == "agree") + //撤销code=1 发起直接通过是 create + if (parameter.code == "agree" || parameter.code == "create") { newsIBLL.ChangeStatusByProcessId(parameter.processId, 2); var entity = noticeIBLL.GetEntityByProcessId(parameter.processId); @@ -57,7 +58,14 @@ namespace Learun.Application.WorkFlow } else { - newsIBLL.ChangeStatusByProcessId(parameter.processId, 0); + if (parameter.code == "disagree") + { + newsIBLL.ChangeStatusByProcessId(parameter.processId, 0); + } + if (parameter.code == "1") + { + newsIBLL.ChangeStatusByProcessId(parameter.processId, 0); + } } }