Commit 694a5271 by 周晓航

josn对象转换

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent 6d444e68
...@@ -2494,8 +2494,8 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService { ...@@ -2494,8 +2494,8 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
// return sessionUserInfo.getResult(); // return sessionUserInfo.getResult();
AssortmentCustomerInfoVo customerInfoVo = customerInfoManager.getCustomerInfoByObject(sessionId); AssortmentCustomerInfoVo customerInfoVo = customerInfoManager.getCustomerInfoByObject(sessionId);
if(customerInfoVo == null) throw new ServiceException(ResponseResult.NOT_LOGIN);; if(customerInfoVo == null) throw new ServiceException(ResponseResult.NOT_LOGIN);;
String jsonObject = JsonUtil.toJSONString(customerInfoVo); String jsonObject = JSON.toJSONString(customerInfoVo);
CustomerInfoVo customerInfoVo1 = JsonUtil.toBean(jsonObject,CustomerInfoVo.class); CustomerInfoVo customerInfoVo1 = JSON.parseObject(jsonObject,CustomerInfoVo.class);
// BeanUtil.convertBean(customerInfoVo,customerInfoVo1); // BeanUtil.convertBean(customerInfoVo,customerInfoVo1);
return customerInfoVo1; return customerInfoVo1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment