Commit b89083e6 by zhiheng.zhang

购物车对象转换异常

parent 0a8e4edb
......@@ -18,6 +18,7 @@ import cn.freemud.adapter.ShoppingCartConvertAdapter;
import cn.freemud.adapter.StoreItemAdapter;
import cn.freemud.base.entity.BaseResponse;
import cn.freemud.base.util.DateUtil;
import cn.freemud.base.util.JsonUtil;
import cn.freemud.constant.ResponseCodeConstant;
import cn.freemud.constant.ShoppingCartConstant;
import cn.freemud.demo.controller.ShoppingCartDemoController;
......@@ -2493,8 +2494,9 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
// return sessionUserInfo.getResult();
AssortmentCustomerInfoVo customerInfoVo = customerInfoManager.getCustomerInfoByObject(sessionId);
if(customerInfoVo == null) throw new ServiceException(ResponseResult.NOT_LOGIN);;
CustomerInfoVo customerInfoVo1 = new CustomerInfoVo();
BeanUtil.convertBean(customerInfoVo,customerInfoVo1);
String jsonObject = JsonUtil.toJSONString(customerInfoVo);
CustomerInfoVo customerInfoVo1 = JsonUtil.toBean(jsonObject,CustomerInfoVo.class);
// BeanUtil.convertBean(customerInfoVo,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