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

This commit is contained in:
CaptainB 2021-12-23 14:35:14 +08:00 committed by shiziyuan9527
parent b6c14ee2b5
commit dbf3e62430
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));
}