|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | @Async | 
|---|
|  |  |  | public int dealCustomerLogData(CustomerLog customerLog){ | 
|---|
|  |  |  | public void dealCustomerLogData(CustomerLog customerLog){ | 
|---|
|  |  |  | if(StringUtils.isBlank(customerLog.getPhone())){ | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | CrmCustomerInfoRequest entity = new CrmCustomerInfoRequest(); | 
|---|
|  |  |  | entity.setId(customerLog.getId()); | 
|---|
|  |  |  | entity.setName(customerLog.getName()); | 
|---|
|  |  |  | 
|---|
|  |  |  | .set(CustomerLog::getCrmStatus,Constants.ONE ) | 
|---|
|  |  |  | .set(CustomerLog::getCrmInfo,crmInfo ) | 
|---|
|  |  |  | .set(CustomerLog::getCrmDate,new Date() ));// 更新状态 | 
|---|
|  |  |  | return status;// 默认失败 | 
|---|
|  |  |  | } | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 获取导购绑定列表 | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public   <T> CRMBaseResponse<T> sendCusHttpRequest(String interfaceUrl,  String name,  String param){ | 
|---|
|  |  |  | log.info("【"+name+"】================开始===="+ JSONObject.toJSONString(param)); | 
|---|
|  |  |  | String appKey = (String) redisTemplate.opsForValue().get(Constants.RedisKeys.ZBOM_CRM_API_KEY); | 
|---|
|  |  |  | String appKey = (String) redisTemplate.opsForValue().get(Constants.RedisKeys.ZBOM_CRM_POSTCUS_API_KEY); | 
|---|
|  |  |  | String url = redisTemplate.opsForValue().get(Constants.RedisKeys.ZBOM_CRM_API_URL) + interfaceUrl ; | 
|---|
|  |  |  | long _t = System.currentTimeMillis(); | 
|---|
|  |  |  | if (StringUtils.isNotBlank(appKey)||StringUtils.isNotBlank(url)) { | 
|---|
|  |  |  | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public    String getCrmGoUrl(String userName){ | 
|---|
|  |  |  | StringBuffer sb = new StringBuffer(); | 
|---|
|  |  |  | String result = null; | 
|---|
|  |  |  | public    String getCrmGoUrl(String userName,Integer type){ | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | // 创建StringBuffer对象用来操作字符串 | 
|---|
|  |  |  | int _t = (int)(System.currentTimeMillis()); | 
|---|
|  |  |  | String pageKey ="mp";//客户列表页面码 | 
|---|
|  |  |  | if(Constants.equalsInteger(type,Constants.ONE)){ | 
|---|
|  |  |  | pageKey = "mpAddIntention";//新增意向页面码 | 
|---|
|  |  |  | } | 
|---|
|  |  |  | String  appkey =  (String) redisTemplate.opsForValue().get(Constants.RedisKeys.ZBOM_CRM_AUTH_API_KEY); | 
|---|
|  |  |  | String  url =  (String) redisTemplate.opsForValue().get(Constants.RedisKeys.ZBOM_CRM_API_URL) | 
|---|
|  |  |  | String  url =   redisTemplate.opsForValue().get(Constants.RedisKeys.ZBOM_CRM_API_URL) | 
|---|
|  |  |  | +CRMConstants.IntegerUrl.GO_CRM_AUTH_URL | 
|---|
|  |  |  | + "?timestamp="+_t | 
|---|
|  |  |  | +"&agent_phone_number=" + URLEncoder.encode(userName, "UTF-8") | 
|---|
|  |  |  | + "&bindKey=mp&sign="+ DigestUtils.md5Hex( _t + appkey);; | 
|---|
|  |  |  | + "&bindKey="+pageKey+"&sign="+ DigestUtils.md5Hex( _t + appkey);; | 
|---|
|  |  |  | return url; | 
|---|
|  |  |  | }catch (Exception e){ | 
|---|
|  |  |  | e.printStackTrace(); | 
|---|