提交 3b79df6f authored 作者: zhengfg's avatar zhengfg

地址为空时返回null

上级 94e67b20
...@@ -160,6 +160,8 @@ public class TbCfAddressServiceImpl implements TbCfAddressService { ...@@ -160,6 +160,8 @@ public class TbCfAddressServiceImpl implements TbCfAddressService {
TbCfAddressVo tbCfAddressVo = new TbCfAddressVo(); TbCfAddressVo tbCfAddressVo = new TbCfAddressVo();
if(tbCfAddressEntity!=null) { if(tbCfAddressEntity!=null) {
BeanUtils.copyProperties(tbCfAddressEntity,tbCfAddressVo); BeanUtils.copyProperties(tbCfAddressEntity,tbCfAddressVo);
} else {
tbCfAddressVo=null;
} }
return new Result<>(tbCfAddressVo); return new Result<>(tbCfAddressVo);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论