From 80926589985e23ee81a1eaf597dbc8aa32077de4 Mon Sep 17 00:00:00 2001 From: xiaosuonian <913474402@qq.com> Date: Sat, 16 Nov 2024 12:15:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=8E=A8=E9=80=81=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=20--xiefeng?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shkd/todotask/todoZyTaskServiceHandler.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/main/java/shkd/todotask/todoZyTaskServiceHandler.java b/main/java/shkd/todotask/todoZyTaskServiceHandler.java index 85986ef..f6ae65f 100644 --- a/main/java/shkd/todotask/todoZyTaskServiceHandler.java +++ b/main/java/shkd/todotask/todoZyTaskServiceHandler.java @@ -233,14 +233,16 @@ public class todoZyTaskServiceHandler extends AbstractMessageServiceHandler { //获取任务创建人 // 信息发送人 Long startUserId = message.getSenderId(); // Long startUserId = messageContext.getStartUserId(); // 审批实例发起人id - DynamicObject startUser = BusinessDataServiceHelper.loadSingle(startUserId, "bos_user"); String startNumber = ""; String startName = ""; - if (null != startUser) { - startNumber = startUser.getString("number"); - startName = startUser.getString("name"); - if (!userIds.contains(startUserId)) { - approversLists.add(startUser);//添加发起人到审批人集合_便于后续接口调用(用户绑定接口) + if (null != startUserId) { + DynamicObject startUser = BusinessDataServiceHelper.loadSingle(startUserId, "bos_user"); + if (null != startUser) { + startNumber = startUser.getString("number"); + startName = startUser.getString("name"); + if (!userIds.contains(startUserId)) { + approversLists.add(startUser);//添加发起人到审批人集合_便于后续接口调用(用户绑定接口) + } } } //获取Url