提交 af8358e1 编写于 作者: wangyongbo's avatar wangyongbo

增加空判断

上级 7870244a
流水线 #30506 已失败 于阶段
in 0 second
...@@ -34,7 +34,11 @@ public class WechatServiceImpl implements WechatService { ...@@ -34,7 +34,11 @@ public class WechatServiceImpl implements WechatService {
if(StringUtil.isEmpty(unionId)){ if(StringUtil.isEmpty(unionId)){
return new AccountWeChatInfoEntity(); return new AccountWeChatInfoEntity();
}else { }else {
return weChatInfoMapper.selectByUnionId(unionId); AccountWeChatInfoEntity entity = weChatInfoMapper.selectByUnionId(unionId);
if(entity == null) {
entity = new AccountWeChatInfoEntity();
}
return entity;
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册