消息待办

This commit is contained in:
“wyx12345678” 2024-07-24 18:19:48 +08:00
parent 81caa915a9
commit 2fbacc68be
1 changed files with 19 additions and 8 deletions

View File

@ -347,6 +347,10 @@ public class MessageListen extends AbstractMessageServiceHandler {
if(entityName.startsWith("差旅报销单")){
entityName = "差旅报销单";
}
if(entityName != null && entityName.startsWith("供应商")){
entityName = "供应商入库";
}
// userNames.add(startUserName);
List<Map<String, Object>> requestBodyList = new ArrayList();
Iterator var47 = userNames.iterator();
@ -527,6 +531,9 @@ public class MessageListen extends AbstractMessageServiceHandler {
if(entityName != null && entityName.startsWith("差旅报销单")){
entityName = "差旅报销单";
}
if(entityName != null && entityName.startsWith("供应商")){
entityName = "供应商入库";
}
Iterator var21 = userNames.iterator();
int i = 1;
while (var21.hasNext()) {
@ -616,15 +623,15 @@ public class MessageListen extends AbstractMessageServiceHandler {
DynamicObject processInstance = BusinessDataServiceHelper.loadSingle("wf_hitaskinst",proQF.toArray());
if (processInstance != null) {
entityName = processInstance.getString("entityname");
startUserId = processInstance.getLong("senderid");
// startUserId = processInstance.getLong("senderid");
}
if (startUserId != null) {
DynamicObject startUser = BusinessDataServiceHelper.loadSingle(startUserId, "bos_user");
if (startUser != null) {
startUserName = startUser.getString("username");
}
}
// if (startUserId != null) {
// DynamicObject startUser = BusinessDataServiceHelper.loadSingle(startUserId, "bos_user");
// if (startUser != null) {
// startUserName = startUser.getString("username");
// }
// }
Date createDate = new Date();
if (createDate != null) {
createDateString = (new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")).format(createDate);
@ -643,6 +650,10 @@ public class MessageListen extends AbstractMessageServiceHandler {
if(entityName != null && entityName.startsWith("差旅报销单")){
entityName = "差旅报销单";
}
if(entityName != null && entityName.startsWith("供应商")){
entityName = "供应商入库";
}
String title = (String) map.get("title");//标题
String url = (String) map.get("url");//processInstanceId
@ -656,7 +667,7 @@ public class MessageListen extends AbstractMessageServiceHandler {
requestBody.put("appurl", url != null ? getAppurl(url) : null);
requestBody.put("isremark", "2");
requestBody.put("viewtype", "1");
requestBody.put("creator", startUserName);
requestBody.put("creator", username);
requestBody.put("createdatetime", createDateString);
requestBody.put("receiver", username);
requestBody.put("receivedatetime", createDateString);