fix: 修复用例评审删除时变量不能正常获取的问题
This commit is contained in:
parent
b6c14ee2b5
commit
dbf3e62430
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue