fix(消息通知): 缺陷显示处理人变量
This commit is contained in:
parent
36629181c3
commit
2a7db501c8
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue