From 30a99ab7ccb8e3a49714633e5956038fa3b69901 Mon Sep 17 00:00:00 2001 From: weiyunlong Date: Sat, 16 Nov 2024 11:05:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=B4=E8=BF=9C=E6=B6=88=E6=81=AF=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shkd/todotask/todoZyTaskServiceHandler.java | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/main/java/shkd/todotask/todoZyTaskServiceHandler.java b/main/java/shkd/todotask/todoZyTaskServiceHandler.java index ab646ce..04f65b6 100644 --- a/main/java/shkd/todotask/todoZyTaskServiceHandler.java +++ b/main/java/shkd/todotask/todoZyTaskServiceHandler.java @@ -212,21 +212,27 @@ public class todoZyTaskServiceHandler extends AbstractMessageServiceHandler { public void sendMessage(MessageContext messageContext, MessageInfo message) { super.sendMessage(messageContext, message); //获取单据编码 - String billNo = messageContext.getBillNo(); +// String billNo = messageContext.getBillNo(); + String billNo =message.getNestBillno(); //消息内容 String content = message.getContent(); //消息时间 - Date createDate = messageContext.getCreateDate(); +// Date createDate = messageContext.getCreateDate(); +// Date createDate = new Date(); + Date createDate = message.getSendTime(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String createDateStr = sdf.format(createDate); //获取当前任务ID - Long taskId = messageContext.getTaskId(); +// Long taskId = messageContext.getTaskId(); + Long taskId = message.getId(); + //获取审批人集合 List approvers = new ArrayList<>(); List userIds = message.getUserIds(); // 审批人ID集合 List approversLists = getApprovers(userIds, approvers); - //获取任务创建人 - Long startUserId = messageContext.getStartUserId(); // 审批实例发起人id + //获取任务创建人 // 信息发送人 + Long startUserId = message.getSenderId(); +// Long startUserId = messageContext.getStartUserId(); // 审批实例发起人id DynamicObject startUser = BusinessDataServiceHelper.loadSingle(startUserId, "bos_user"); String startNumber = ""; String startName = "";