门店号管理

master
LegnaYet 6 years ago
parent 99e8f26bb2
commit 26ae919def

@ -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;
}
}
}

@ -84,6 +84,22 @@ public class EmployeeController extends BaseController {
return fail();
}
}
/**
*
* @return
* @throws Exception
*/
@RequestMapping(value = "modify/custommer/relation",method = RequestMethod.GET)
@ResponseBody
public Map<String,Object> modifyTagRelation(){
try {
employeeService.modifyTagRelation();
return success();
}catch (Exception e){
log.error("同步客户数据失败",e);
return fail();
}
}
/**
*
* @return

@ -631,6 +631,7 @@ public class EmployeeService {
customerService.turnBack(turnBackDTO);
}
}
System.out.println("完成:"+cpUserId);
}
}

Loading…
Cancel
Save