|
|
@ -91,7 +91,7 @@ public class CustomerService {
|
|
|
|
public Long customerRelation(CustomerDTO customerDTO){
|
|
|
|
public Long customerRelation(CustomerDTO customerDTO){
|
|
|
|
//客户信息
|
|
|
|
//客户信息
|
|
|
|
QueryWrapper<OpCustomer> customerWrapper = new QueryWrapper<>();
|
|
|
|
QueryWrapper<OpCustomer> customerWrapper = new QueryWrapper<>();
|
|
|
|
customerWrapper.eq("wechat_uni_id",customerDTO.getUniId()).last("limit 1");
|
|
|
|
customerWrapper.eq("external_userid",customerDTO.getExternalUserid()).last("limit 1");
|
|
|
|
OpCustomer opCustomer = opCustomerDOMapper.selectOne(customerWrapper);
|
|
|
|
OpCustomer opCustomer = opCustomerDOMapper.selectOne(customerWrapper);
|
|
|
|
//店铺信息
|
|
|
|
//店铺信息
|
|
|
|
QueryWrapper<PoiStore> poiWrapper = new QueryWrapper<>();
|
|
|
|
QueryWrapper<PoiStore> poiWrapper = new QueryWrapper<>();
|
|
|
@ -108,7 +108,7 @@ public class CustomerService {
|
|
|
|
|
|
|
|
|
|
|
|
//做插入使用
|
|
|
|
//做插入使用
|
|
|
|
OpCustomer insertCustomer = new OpCustomer();
|
|
|
|
OpCustomer insertCustomer = new OpCustomer();
|
|
|
|
insertCustomer.setWechatUniId(customerDTO.getUniId());
|
|
|
|
insertCustomer.setExternalUserid(customerDTO.getExternalUserid());
|
|
|
|
insertCustomer.setName(customerDTO.getName());
|
|
|
|
insertCustomer.setName(customerDTO.getName());
|
|
|
|
if(null != opCustomer){
|
|
|
|
if(null != opCustomer){
|
|
|
|
//存在--1.处理客户导购关系。
|
|
|
|
//存在--1.处理客户导购关系。
|
|
|
|