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 = "";