消息待办

This commit is contained in:
“wyx12345678” 2024-07-24 18:55:59 +08:00
parent 32fdf4d387
commit b954114001
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ public class ApprovalBillFormPlugin extends AbstractWorkflowPlugin {
Map<String, Object> customParams = this.getView().getFormShowParameter().getCustomParams();
String apptype = (String) customParams.get("apptype");//获取应用类型
String msgId = (String) customParams.get("msgId");
Object processInstanceId = customParams.get("prcid");
Object processInstanceId = customParams.get("processInstanceId");
if ("waver".equals(apptype) && !Strings.isEmpty(msgId) && processInstanceId != null){//当接口对象为泛微且提供消息对象主键不为空
DynamicObject wf_msg_message = BusinessDataServiceHelper.loadSingle(msgId, "wf_msg_message");//获取消息模型对象
HashMap<String,Object> map = new HashMap<>();
@ -45,4 +45,4 @@ public class ApprovalBillFormPlugin extends AbstractWorkflowPlugin {
messageListen.sendMessage(map);
}
}
}
}

View File

@ -62,7 +62,7 @@ public class UserTreeListPlugin extends kd.bos.sec.user.plugin.UserTreeListPlugi
for (int i=childNodes.size()-1;i>=0;i--) {
TreeNode childNode = childNodes.get(i);
String id = childNode.getId();
if("noOrg".equals(id)){
if("noOrg".equals(id)||"externalUserType".equals(id)){
continue;
}
QFilter qf = new QFilter("id", QCP.equals, Long.valueOf(id));