diff --git a/src/main/java/com/kiisoo/ic/customer/CustomerService.java b/src/main/java/com/kiisoo/ic/customer/CustomerService.java index 7f7c68d..dd5e3ca 100644 --- a/src/main/java/com/kiisoo/ic/customer/CustomerService.java +++ b/src/main/java/com/kiisoo/ic/customer/CustomerService.java @@ -228,6 +228,7 @@ public class CustomerService { * @date 2020/05/24 13:46 */ private void handleAddCustomer(TurnBackDTO turnBackDTOS) throws Exception { + log.error("没有jointime"+new Gson().toJson(turnBackDTOS)); OpCustomer opCustomer = null; if (turnBackDTOS.getWxData().getUnionId() == null && turnBackDTOS.getWxData().getUserId() != null) { //此时说明是企业微信扫码添加 @@ -285,7 +286,6 @@ public class CustomerService { if (StringUtils.isNotBlank(turnBackDTOS.getJoinTime())) { insertCustomer.setCreateTime(sdf.parse(turnBackDTOS.getJoinTime())); } else { - log.error("没有jointime"+new Gson().toJson(turnBackDTOS)); return; } if (null != opCustomer) { @@ -478,17 +478,6 @@ public class CustomerService { insertRelation.setType(2); } opSellerCustomerRelationDOMapper.insert(insertRelation); - } else { - //可能是同步过来的数据,此时已经存在的话,用有导购的代替 - opSellerCustomerRelation.setCreateTime(joinTime); - opSellerCustomerRelation.setUpdateTime(new Date()); - opSellerCustomerRelation.setCustomerId(opCustomer.getId()); - opSellerCustomerRelation.setStoreId(shopId); - opSellerCustomerRelation.setUserId(sellerId); - opSellerCustomerRelation.setCreateBy(Constants.SYS_OPERATION); - opSellerCustomerRelation.setUpdateBy(Constants.SYS_OPERATION); - opSellerCustomerRelation.setCpUserId(opCustomer.getCpUserId()); - opSellerCustomerRelationDOMapper.updateById(opSellerCustomerRelation); } }