fix: 修复删除测试计划报告没有发送通知的问题

--bug=1011406 --user=刘瑞斌 【系统设置】-消息设置 -测试报告-删除事件没有 发消息通知 https://www.tapd.cn/55049933/s/1123420
This commit is contained in:
CaptainB 2022-03-22 16:20:52 +08:00 committed by shiziyuan9527
parent ca6873c7bd
commit 350a6b395a
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ public class SendNoticeAspect {
Object v = titleExp.getValue(context, Object.class); Object v = titleExp.getValue(context, Object.class);
// 查询结果如果是null或者是{}不使用这个值 // 查询结果如果是null或者是{}不使用这个值
String jsonObject = JSON.toJSONString(v); String jsonObject = JSON.toJSONString(v);
if (v != null && !StringUtils.equals("{}", jsonObject)) { if (v != null && !StringUtils.equals("{}", jsonObject) && !StringUtils.equals("[]", jsonObject)) {
Map<String, Object> memberValues = (Map<String, Object>) value.get(invocationHandler); Map<String, Object> memberValues = (Map<String, Object>) value.get(invocationHandler);
memberValues.put("source", JSON.toJSONString(v, WriteMapNullValue)); memberValues.put("source", JSON.toJSONString(v, WriteMapNullValue));
} }