流程待办集成0.7

泛微syscode根据单据配置
This commit is contained in:
李靖 2024-06-11 18:04:45 +08:00
parent 5a2b41a601
commit c1a2339806
1 changed files with 5 additions and 6 deletions

View File

@ -320,6 +320,9 @@ public class MessageListen extends AbstractMessageServiceHandler {
// receiverUser = receiver.getString("username"); // receiverUser = receiver.getString("username");
// } // }
String entityName = messageContext.getEntityName(); String entityName = messageContext.getEntityName();
if(entityName.startsWith("差旅报销单")){
entityName = "差旅报销单";
}
userNames.add(startUserName); userNames.add(startUserName);
List<Map<String, Object>> requestBodyList = new ArrayList(); List<Map<String, Object>> requestBodyList = new ArrayList();
Iterator var47 = userNames.iterator(); Iterator var47 = userNames.iterator();
@ -327,13 +330,9 @@ public class MessageListen extends AbstractMessageServiceHandler {
JSONObject jsonCode = JSON.parseObject(syscodestr); JSONObject jsonCode = JSON.parseObject(syscodestr);
String syscode = jsonCode.getString(entityName); String syscode = jsonCode.getString(entityName);
if(syscode == null || "".equals(syscode)){ if(syscode == null || "".equals(syscode)){
if(entityName.startsWith("差旅报销单")){
syscode = jsonCode.getString("差旅报销单");
} else {
log.info("cxkg.integration.MessageListen.syscode is null: " + log.info("cxkg.integration.MessageListen.syscode is null: " +
entityName + "/" + messageContext.getEntityNumber()); entityName + "/" + messageContext.getEntityNumber());
} }
}
String title = "请处理" + startUserTrueName + "提交的" + entityName + "" + messageContext.getBillNo(); String title = "请处理" + startUserTrueName + "提交的" + entityName + "" + messageContext.getBillNo();
while (var47.hasNext()) { while (var47.hasNext()) {