|
|
@ -188,6 +188,7 @@ public class CustomerService {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 活动码处理
|
|
|
|
* 活动码处理
|
|
|
|
|
|
|
|
*
|
|
|
|
* @param turnBackDTOS 回调对象
|
|
|
|
* @param turnBackDTOS 回调对象
|
|
|
|
* @param eaCode 二维码的state字段
|
|
|
|
* @param eaCode 二维码的state字段
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -202,6 +203,7 @@ public class CustomerService {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 处理客户扫码回调的方法
|
|
|
|
* 处理客户扫码回调的方法
|
|
|
|
|
|
|
|
*
|
|
|
|
* @param turnBackDTOS 回调对象
|
|
|
|
* @param turnBackDTOS 回调对象
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private void handleCustomer(TurnBackDTO turnBackDTOS) throws Exception {
|
|
|
|
private void handleCustomer(TurnBackDTO turnBackDTOS) throws Exception {
|
|
|
@ -219,6 +221,7 @@ public class CustomerService {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 添加客户的处理
|
|
|
|
* 添加客户的处理
|
|
|
|
|
|
|
|
*
|
|
|
|
* @param turnBackDTOS 回调对象
|
|
|
|
* @param turnBackDTOS 回调对象
|
|
|
|
* @throws Exception 异常
|
|
|
|
* @throws Exception 异常
|
|
|
|
* @author dexiang.jiang
|
|
|
|
* @author dexiang.jiang
|
|
|
@ -279,9 +282,10 @@ public class CustomerService {
|
|
|
|
insertCustomer.setShopName(shop.getName());
|
|
|
|
insertCustomer.setShopName(shop.getName());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
if (turnBackDTOS.getJoinTime() != null){
|
|
|
|
if (StringUtils.isNotBlank(turnBackDTOS.getJoinTime())) {
|
|
|
|
insertCustomer.setCreateTime(sdf.parse(turnBackDTOS.getJoinTime()));
|
|
|
|
insertCustomer.setCreateTime(sdf.parse(turnBackDTOS.getJoinTime()));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
log.error("没有jointime"+new Gson().toJson(turnBackDTOS));
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (null != opCustomer) {
|
|
|
|
if (null != opCustomer) {
|
|
|
@ -346,6 +350,7 @@ public class CustomerService {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 删除客户的处理
|
|
|
|
* 删除客户的处理
|
|
|
|
|
|
|
|
*
|
|
|
|
* @param turnBackDTOS 回调对象
|
|
|
|
* @param turnBackDTOS 回调对象
|
|
|
|
* @throws Exception 异常
|
|
|
|
* @throws Exception 异常
|
|
|
|
* @author dexiang.jiang
|
|
|
|
* @author dexiang.jiang
|
|
|
@ -437,6 +442,7 @@ public class CustomerService {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 处理客户和导购的关系
|
|
|
|
* 处理客户和导购的关系
|
|
|
|
|
|
|
|
*
|
|
|
|
* @param opCustomer
|
|
|
|
* @param opCustomer
|
|
|
|
* @param joinTime
|
|
|
|
* @param joinTime
|
|
|
|
* @param shopId
|
|
|
|
* @param shopId
|
|
|
@ -628,6 +634,7 @@ public class CustomerService {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 查询好友列表,可根据导购、日期、搜索
|
|
|
|
* 查询好友列表,可根据导购、日期、搜索
|
|
|
|
|
|
|
|
*
|
|
|
|
* @param userId 用户ID
|
|
|
|
* @param userId 用户ID
|
|
|
|
* @param sellerId 导购ID
|
|
|
|
* @param sellerId 导购ID
|
|
|
|
* @param search 搜索内容
|
|
|
|
* @param search 搜索内容
|
|
|
|