|
|
|
@ -210,9 +210,20 @@ public class CustomerService {
|
|
|
|
|
}
|
|
|
|
|
if (poiStoreStaff != null) {
|
|
|
|
|
//存在--1.处理客户导购关系。
|
|
|
|
|
sellerCustomerRelation(opCustomer, turnBackDTOS.getEaCode(),sdf.parse(turnBackDTOS.getJoinTime()), poiStore.getStoreId(), poiStoreStaff.getId());
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
sellerCustomerRelation(opCustomer, turnBackDTOS.getEaCode(),sdf.parse(turnBackDTOS.getJoinTime()), poiStore.getStoreId(), poiStoreStaff.getId());
|
|
|
|
|
}catch (Exception e) {
|
|
|
|
|
System.out.println(opCustomer.toString());
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
storeCustomerRelation(opCustomer,sdf.parse(turnBackDTOS.getJoinTime()), poiStore.getStoreId());
|
|
|
|
|
try {
|
|
|
|
|
storeCustomerRelation(opCustomer,sdf.parse(turnBackDTOS.getJoinTime()), poiStore.getStoreId());
|
|
|
|
|
}catch (Exception e) {
|
|
|
|
|
System.out.println(opCustomer.toString());
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
insertCustomer.setCreateBy(Constants.SYS_OPERATION);
|
|
|
|
@ -226,9 +237,19 @@ public class CustomerService {
|
|
|
|
|
|
|
|
|
|
if (poiStoreStaff != null) {
|
|
|
|
|
//添加关系
|
|
|
|
|
sellerCustomerRelation(insertCustomer, turnBackDTOS.getEaCode(),sdf.parse(turnBackDTOS.getJoinTime()), poiStore.getStoreId(), poiStoreStaff.getId());
|
|
|
|
|
try {
|
|
|
|
|
sellerCustomerRelation(insertCustomer, turnBackDTOS.getEaCode(),sdf.parse(turnBackDTOS.getJoinTime()), poiStore.getStoreId(), poiStoreStaff.getId());
|
|
|
|
|
}catch (Exception e) {
|
|
|
|
|
System.out.println(insertCustomer.toString());
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
storeCustomerRelation(insertCustomer, sdf.parse(turnBackDTOS.getJoinTime()),poiStore.getStoreId());
|
|
|
|
|
try {
|
|
|
|
|
storeCustomerRelation(insertCustomer, sdf.parse(turnBackDTOS.getJoinTime()),poiStore.getStoreId());
|
|
|
|
|
}catch (Exception e) {
|
|
|
|
|
System.out.println(insertCustomer.toString());
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|