|
|
|
@ -46,6 +46,7 @@ import com.kiisoo.ic.webappmy.vo.StafferInfoVO;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.apache.shiro.crypto.hash.SimpleHash;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
@ -205,6 +206,7 @@ public class CustomerService {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 活动码处理
|
|
|
|
|
*
|
|
|
|
|
* @param turnBackDTOS 回调对象
|
|
|
|
|
* @param eaCode 二维码的state字段
|
|
|
|
|
*/
|
|
|
|
@ -237,6 +239,7 @@ public class CustomerService {
|
|
|
|
|
PoiStore store = poiStoreDOMapper.selectById(storeId);
|
|
|
|
|
String url = storeEmployeeService.createActivityQrCode(turnBackDTOS.getWxData().getUserId(), store.getCode(), 1, instanceId, promoterId);
|
|
|
|
|
saveSrc.setQrCode(url);
|
|
|
|
|
pmnPromotionSrcService.saveCodeFile(url, new SimpleHash("MD5", state).toHex());
|
|
|
|
|
pmnPromotionSrcService.save(saveSrc);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -244,6 +247,7 @@ public class CustomerService {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 处理客户扫码回调的方法
|
|
|
|
|
*
|
|
|
|
|
* @param turnBackDTOS 回调对象
|
|
|
|
|
*/
|
|
|
|
|
private void handleCustomer(TurnBackDTO turnBackDTOS) throws Exception {
|
|
|
|
@ -406,6 +410,7 @@ public class CustomerService {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 处理客户和导购的关系
|
|
|
|
|
*
|
|
|
|
|
* @param opCustomer
|
|
|
|
|
* @param joinTime
|
|
|
|
|
* @param shopId
|
|
|
|
@ -594,6 +599,7 @@ public class CustomerService {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询好友列表,可根据导购、日期、搜索
|
|
|
|
|
*
|
|
|
|
|
* @param userId 用户ID
|
|
|
|
|
* @param sellerId 导购ID
|
|
|
|
|
* @param search 搜索内容
|
|
|
|
|