fix(消息通知): 缺陷显示处理人变量

This commit is contained in:
CaptainB 2022-01-27 18:32:11 +08:00 committed by xiaomeinvG
parent 36629181c3
commit 2a7db501c8
1 changed files with 5 additions and 2 deletions

View File

@ -209,9 +209,12 @@ public abstract class AbstractNoticeSender implements NoticeSender {
JSONArray array = JSON.parseArray(customFields);
for (Object o : array) {
JSONObject jsonObject = JSON.parseObject(o.toString());
String name = jsonObject.getString("name");
Object value = jsonObject.getObject("value", Object.class);
paramMap.put(name, value); // 处理人
if (StringUtils.equals(jsonObject.getString("name"), "处理人")) {
String processor = jsonObject.getString("value");
toUsers.add(new Receiver(processor, NotificationConstants.Type.SYSTEM_NOTICE.name()));
paramMap.put("processor", value); // 处理人
toUsers.add(new Receiver(value.toString(), NotificationConstants.Type.SYSTEM_NOTICE.name()));
break;
}
}