门店号管理

dev_0531
LegnaYet 6 years ago
parent c6fcb29206
commit 6996268396

@ -222,7 +222,9 @@ public class CustomerService {
insertCustomer.setShopName(shop.getName());
}
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
if (turnBackDTOS.getJoinTime() != null){
insertCustomer.setCreateTime(sdf.parse(turnBackDTOS.getJoinTime()));
}
if (null != opCustomer) {
//更新一下
insertCustomer.setId(opCustomer.getId());

@ -2,6 +2,7 @@ package com.kiisoo.ic.employee.service;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.google.gson.Gson;
import com.kiisoo.ic.common.utils.MD5FileUtil;
import com.kiisoo.ic.common.utils.httpClientUtil.HttpClientUtil;
import com.kiisoo.ic.common.utils.httpClientUtil.HttpResult;
@ -552,8 +553,11 @@ public class EmployeeService {
wxDataDTO.setUserId(externalContact.getExternalUserId());
wxDataDTO.setUnionId(externalContact.getUnionId());
turnBackDTO.setWxData(wxDataDTO);
try {
customerService.turnBack(turnBackDTO);
}catch (Exception e) {
log.error(new Gson().toJson(turnBackDTO),e);
}
}
}
}

@ -45,7 +45,7 @@ public class DTOMessageHandler implements EventHandler<DTOMessage> {
}catch (Exception e) {
log.error("查询联系人失败:"+cpUserId,e);
}
if (CollectionUtils.isNotEmpty(customers)){
if (CollectionUtils.isEmpty(customers)){
return;
}
for (WxCpUserExternalContactInfo customer:customers){

Loading…
Cancel
Save