致远消息推送优化
This commit is contained in:
parent
bfd607f019
commit
30a99ab7cc
|
@ -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<DynamicObject> approvers = new ArrayList<>();
|
||||
List<Long> userIds = message.getUserIds(); // 审批人ID集合
|
||||
List<DynamicObject> 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 = "";
|
||||
|
|
Loading…
Reference in New Issue