Commit c3c52a50 by ping.wu

Merge remote-tracking branch 'origin/featur/20210609-会员信息-zy' into featur/20210609-会员信息-zy

parents 93e08e0b ed5faea8
...@@ -23,6 +23,7 @@ import cn.freemud.service.thirdparty.CustomerApplicationClient; ...@@ -23,6 +23,7 @@ import cn.freemud.service.thirdparty.CustomerApplicationClient;
import cn.freemud.service.thirdparty.StockClient; import cn.freemud.service.thirdparty.StockClient;
import cn.freemud.utils.BeanUtil; import cn.freemud.utils.BeanUtil;
import cn.freemud.utils.PromotionFactory; import cn.freemud.utils.PromotionFactory;
import com.alibaba.fastjson.JSON;
import com.freemud.api.assortment.datamanager.entity.db.AssortmentOpenPlatformPartnerStoreDeliveryConfig; import com.freemud.api.assortment.datamanager.entity.db.AssortmentOpenPlatformPartnerStoreDeliveryConfig;
import com.freemud.api.assortment.datamanager.entity.vo.AssortmentCustomerInfoVo; import com.freemud.api.assortment.datamanager.entity.vo.AssortmentCustomerInfoVo;
import com.freemud.api.assortment.datamanager.manager.AssortmentOpenPlatformPartnerStoreDeliveryConfigManager; import com.freemud.api.assortment.datamanager.manager.AssortmentOpenPlatformPartnerStoreDeliveryConfigManager;
...@@ -123,8 +124,9 @@ public abstract class AbstractShoppingCartImpl implements ShoppingCartNewService ...@@ -123,8 +124,9 @@ public abstract class AbstractShoppingCartImpl implements ShoppingCartNewService
// } // }
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);;
CustomerInfoVo customerInfoVo1 = new CustomerInfoVo(); String jsonObject = JSON.toJSONString(customerInfoVo);
BeanUtil.convertBean(customerInfoVo,customerInfoVo1); CustomerInfoVo customerInfoVo1 = JSON.parseObject(jsonObject,CustomerInfoVo.class);
// BeanUtil.convertBean(customerInfoVo,customerInfoVo1);
return customerInfoVo1; return customerInfoVo1;
} }
......
...@@ -14,6 +14,7 @@ import cn.freemud.service.thirdparty.CustomerApplicationClient; ...@@ -14,6 +14,7 @@ import cn.freemud.service.thirdparty.CustomerApplicationClient;
import cn.freemud.utils.BeanUtil; import cn.freemud.utils.BeanUtil;
import cn.freemud.utils.LogUtil; import cn.freemud.utils.LogUtil;
import cn.freemud.utils.ResponseUtil; import cn.freemud.utils.ResponseUtil;
import com.alibaba.fastjson.JSON;
import com.freemud.api.assortment.datamanager.entity.vo.AssortmentCustomerInfoVo; import com.freemud.api.assortment.datamanager.entity.vo.AssortmentCustomerInfoVo;
import com.freemud.api.assortment.datamanager.manager.customer.AssortmentCustomerInfoManager; import com.freemud.api.assortment.datamanager.manager.customer.AssortmentCustomerInfoManager;
import com.freemud.application.sdk.api.log.ApiLog; import com.freemud.application.sdk.api.log.ApiLog;
...@@ -69,9 +70,10 @@ public class OpenStoreIappWxappConfigServiceImpl implements OpenStoreIappWxappCo ...@@ -69,9 +70,10 @@ public class OpenStoreIappWxappConfigServiceImpl implements OpenStoreIappWxappCo
// } // }
// 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);
CustomerInfoVo customerInfoVo1 = new CustomerInfoVo(); String jsonObject = JSON.toJSONString(customerInfoVo);
BeanUtil.convertBean(customerInfoVo,customerInfoVo1); CustomerInfoVo customerInfoVo1 = JSON.parseObject(jsonObject,CustomerInfoVo.class);
// BeanUtil.convertBean(customerInfoVo,customerInfoVo1);
return customerInfoVo1; return customerInfoVo1;
} }
} }
...@@ -905,8 +905,9 @@ public class ShoppingCartMallServiceImpl implements ShoppingCartNewService { ...@@ -905,8 +905,9 @@ public class ShoppingCartMallServiceImpl 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);;
CustomerInfoVo customerInfoVo1 = new CustomerInfoVo(); String jsonObject = JSON.toJSONString(customerInfoVo);
BeanUtil.convertBean(customerInfoVo,customerInfoVo1); CustomerInfoVo customerInfoVo1 = JSON.parseObject(jsonObject,CustomerInfoVo.class);
// BeanUtil.convertBean(customerInfoVo,customerInfoVo1);
return customerInfoVo1; return customerInfoVo1;
} }
......
...@@ -22,6 +22,7 @@ import cn.freemud.service.ShoppingCartNewService; ...@@ -22,6 +22,7 @@ import cn.freemud.service.ShoppingCartNewService;
import cn.freemud.service.thirdparty.ActivityClient; import cn.freemud.service.thirdparty.ActivityClient;
import cn.freemud.service.thirdparty.CustomerApplicationClient; import cn.freemud.service.thirdparty.CustomerApplicationClient;
import cn.freemud.utils.*; import cn.freemud.utils.*;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.freemud.api.assortment.datamanager.entity.vo.AssortmentCustomerInfoVo; import com.freemud.api.assortment.datamanager.entity.vo.AssortmentCustomerInfoVo;
...@@ -709,8 +710,9 @@ public class ShoppingCartMealServiceImpl implements ShoppingCartNewService { ...@@ -709,8 +710,9 @@ public class ShoppingCartMealServiceImpl implements ShoppingCartNewService {
// return sessionUserInfo.getResult(); // return sessionUserInfo.getResult();
AssortmentCustomerInfoVo customerInfoVo = customerInfoManager.getCustomerInfoByObject(sessionId); AssortmentCustomerInfoVo customerInfoVo = customerInfoManager.getCustomerInfoByObject(sessionId);
if(customerInfoVo == null) return null; if(customerInfoVo == null) return null;
CustomerInfoVo customerInfoVo1 = new CustomerInfoVo(); String jsonObject = JSON.toJSONString(customerInfoVo);
BeanUtil.convertBean(customerInfoVo,customerInfoVo1); CustomerInfoVo customerInfoVo1 = JSON.parseObject(jsonObject,CustomerInfoVo.class);
// BeanUtil.convertBean(customerInfoVo,customerInfoVo1);
return customerInfoVo1; return customerInfoVo1;
} }
......
...@@ -2382,8 +2382,9 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService { ...@@ -2382,8 +2382,9 @@ 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);;
CustomerInfoVo customerInfoVo1 = new CustomerInfoVo(); String jsonObject = JSON.toJSONString(customerInfoVo);
BeanUtil.convertBean(customerInfoVo,customerInfoVo1); CustomerInfoVo customerInfoVo1 = JSON.parseObject(jsonObject,CustomerInfoVo.class);
// BeanUtil.convertBean(customerInfoVo,customerInfoVo1);
return customerInfoVo1; return customerInfoVo1;
} }
......
...@@ -1584,8 +1584,9 @@ public class ShoppingCartMCoffeeServiceImpl { ...@@ -1584,8 +1584,9 @@ public class ShoppingCartMCoffeeServiceImpl {
AssortmentCustomerInfoVo customerInfoVo = customerInfoManager.getCustomerInfoByObject(sessionId); AssortmentCustomerInfoVo customerInfoVo = customerInfoManager.getCustomerInfoByObject(sessionId);
if (customerInfoVo == null) if (customerInfoVo == null)
throw new ServiceException(ResponseResult.NOT_LOGIN); throw new ServiceException(ResponseResult.NOT_LOGIN);
CustomerInfoVo customerInfoVo1 = new CustomerInfoVo(); String jsonObject = JSON.toJSONString(customerInfoVo);
BeanUtil.convertBean(customerInfoVo, customerInfoVo1); CustomerInfoVo customerInfoVo1 = JSON.parseObject(jsonObject,CustomerInfoVo.class);
// 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