fix: 修复用例评审删除时变量不能正常获取的问题

This commit is contained in:
CaptainB 2021-12-23 14:35:14 +08:00 committed by 刘瑞斌
parent 67a143588c
commit 087c9facd5
1 changed files with 3 additions and 1 deletions

View File

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