fix: 修复用例评审删除时变量不能正常获取的问题
This commit is contained in:
parent
67a143588c
commit
087c9facd5
|
@ -119,7 +119,9 @@ public class SendNoticeAspect {
|
||||||
String target = sendNotice.target();
|
String target = sendNotice.target();
|
||||||
Expression titleExp = parser.parseExpression(target);
|
Expression titleExp = parser.parseExpression(target);
|
||||||
Object v = titleExp.getValue(context, Object.class);
|
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);
|
Map<String, Object> memberValues = (Map<String, Object>) value.get(invocationHandler);
|
||||||
memberValues.put("source", JSON.toJSONString(v, WriteMapNullValue));
|
memberValues.put("source", JSON.toJSONString(v, WriteMapNullValue));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue