|
@@ -160,6 +160,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<CustomerMapper> implemen
|
|
|
switch(co.getCustomerType()){
|
|
switch(co.getCustomerType()){
|
|
|
case 0 : co.set_customerType("个人客户") ;break;
|
|
case 0 : co.set_customerType("个人客户") ;break;
|
|
|
case 1 : co.set_customerType("公司客户") ;break;
|
|
case 1 : co.set_customerType("公司客户") ;break;
|
|
|
|
|
+ case 2 : co.set_customerType("团体单位") ;break;
|
|
|
}
|
|
}
|
|
|
switch(co.getCustomerStatus()){
|
|
switch(co.getCustomerStatus()){
|
|
|
case 0 : co.set_customerStatus("新客户") ;break;
|
|
case 0 : co.set_customerStatus("新客户") ;break;
|
|
@@ -195,6 +196,11 @@ public class CustomerServiceImpl extends BaseMybatisDao<CustomerMapper> implemen
|
|
|
if(s.equals("4")) _companyIntention += "知识产权贯标-";
|
|
if(s.equals("4")) _companyIntention += "知识产权贯标-";
|
|
|
if(s.equals("5")) _companyIntention += "高企认定-";
|
|
if(s.equals("5")) _companyIntention += "高企认定-";
|
|
|
if(s.equals("6")) _companyIntention += "技术成果-";
|
|
if(s.equals("6")) _companyIntention += "技术成果-";
|
|
|
|
|
+ if(s.equals("7")) _companyIntention += "技术需求-";
|
|
|
|
|
+ if(s.equals("8")) _companyIntention += "专家咨询-";
|
|
|
|
|
+ if(s.equals("9")) _companyIntention += "团单合作-";
|
|
|
|
|
+ if(s.equals("10")) _companyIntention += "商标-";
|
|
|
|
|
+ if(s.equals("10")) _companyIntention += "系统集成-";
|
|
|
}
|
|
}
|
|
|
_companyIntention = _companyIntention.substring(0, _companyIntention.length()-1);
|
|
_companyIntention = _companyIntention.substring(0, _companyIntention.length()-1);
|
|
|
}
|
|
}
|
|
@@ -237,14 +243,14 @@ public class CustomerServiceImpl extends BaseMybatisDao<CustomerMapper> implemen
|
|
|
log.setAfterFollowSituation(CustomerFollowFiled.getField(Integer.parseInt(cus.getFollowSituation())).getDesc()); //跟进状态
|
|
log.setAfterFollowSituation(CustomerFollowFiled.getField(Integer.parseInt(cus.getFollowSituation())).getDesc()); //跟进状态
|
|
|
log.setAfterCustomerIntention(getCompanyIntention(cus.getCompanyIntention())); //跟进意向
|
|
log.setAfterCustomerIntention(getCompanyIntention(cus.getCompanyIntention())); //跟进意向
|
|
|
log.setAfterCustomerStatus(CustomerStatusFiled.getField(Integer.parseInt(cus.getCustomerStatus())).getDesc()); //客户状态
|
|
log.setAfterCustomerStatus(CustomerStatusFiled.getField(Integer.parseInt(cus.getCustomerStatus())).getDesc()); //客户状态
|
|
|
- log.setAfterAdminName(adminMapper.selectByPrimaryKey(TokenManager.getAdminId()).getName());
|
|
|
|
|
|
|
+ log.setAfterAdminName(TokenManager.getAdminToken().getName());
|
|
|
log.setOperatorType(AFTConstants.CUSTOMER_CREATE);
|
|
log.setOperatorType(AFTConstants.CUSTOMER_CREATE);
|
|
|
}else if(operatorType.equals(AFTConstants.CUSTOMER_MODIFY)){ //修改用户
|
|
}else if(operatorType.equals(AFTConstants.CUSTOMER_MODIFY)){ //修改用户
|
|
|
log.setBeforeAdminName(cus.getBeforeAdminName());//修改前操作人
|
|
log.setBeforeAdminName(cus.getBeforeAdminName());//修改前操作人
|
|
|
log.setBeforeCustomerIntention(getCompanyIntention(c.getCompanyIntention())); //修改前跟进意向
|
|
log.setBeforeCustomerIntention(getCompanyIntention(c.getCompanyIntention())); //修改前跟进意向
|
|
|
log.setBeforeCustomerStatus(CustomerStatusFiled.getField(c.getCustomerStatus()).getDesc()); //修改前跟进状态
|
|
log.setBeforeCustomerStatus(CustomerStatusFiled.getField(c.getCustomerStatus()).getDesc()); //修改前跟进状态
|
|
|
log.setBeforeFollowSituation(CustomerFollowFiled.getField(c.getFollowSituation()).getDesc());//修改前跟进进度
|
|
log.setBeforeFollowSituation(CustomerFollowFiled.getField(c.getFollowSituation()).getDesc());//修改前跟进进度
|
|
|
- log.setAfterFollowSituation(CustomerFollowFiled.getField(c.getFollowSituation()).getDesc()); //修改后跟进状态
|
|
|
|
|
|
|
+ log.setAfterFollowSituation(CustomerFollowFiled.getField(Integer.parseInt(cus.getFollowSituation())).getDesc()); //修改后跟进状态
|
|
|
log.setAfterCustomerIntention(getCompanyIntention(cus.getCompanyIntention())); //修改后跟进意向
|
|
log.setAfterCustomerIntention(getCompanyIntention(cus.getCompanyIntention())); //修改后跟进意向
|
|
|
log.setAfterCustomerStatus(CustomerStatusFiled.getField(Integer.parseInt(cus.getCustomerStatus())).getDesc()); //修改后客户状态
|
|
log.setAfterCustomerStatus(CustomerStatusFiled.getField(Integer.parseInt(cus.getCustomerStatus())).getDesc()); //修改后客户状态
|
|
|
log.setOperatorType(AFTConstants.CUSTOMER_MODIFY);
|
|
log.setOperatorType(AFTConstants.CUSTOMER_MODIFY);
|
|
@@ -268,12 +274,21 @@ public class CustomerServiceImpl extends BaseMybatisDao<CustomerMapper> implemen
|
|
|
log.setBeforeCustomerStatus(CustomerStatusFiled.getField(Integer.parseInt(cus.getBeforeCustomerStatus())).getDesc()); //领取前跟进状态
|
|
log.setBeforeCustomerStatus(CustomerStatusFiled.getField(Integer.parseInt(cus.getBeforeCustomerStatus())).getDesc()); //领取前跟进状态
|
|
|
log.setBeforeFollowSituation(CustomerFollowFiled.getField(Integer.parseInt(cus.getBeforeFollowSituation())).getDesc());//领取前跟进进度
|
|
log.setBeforeFollowSituation(CustomerFollowFiled.getField(Integer.parseInt(cus.getBeforeFollowSituation())).getDesc());//领取前跟进进度
|
|
|
log.setOperatorType(AFTConstants.CUSTOMER_RECEIVE);
|
|
log.setOperatorType(AFTConstants.CUSTOMER_RECEIVE);
|
|
|
- }else if(operatorType.equals(AFTConstants.CUSTOMER_TO_PUBLIC)){
|
|
|
|
|
|
|
+ }else if(operatorType.equals(AFTConstants.CUSTOMER_TO_PUBLIC)){ //转为公共客户
|
|
|
log.setBeforeAdminName(cus.getBeforeAdminName());//转为公共客户前跟进人
|
|
log.setBeforeAdminName(cus.getBeforeAdminName());//转为公共客户前跟进人
|
|
|
log.setBeforeCustomerIntention(getCompanyIntention(cus.getBeforeCompanyIntention())); //修改前跟进意向
|
|
log.setBeforeCustomerIntention(getCompanyIntention(cus.getBeforeCompanyIntention())); //修改前跟进意向
|
|
|
log.setBeforeCustomerStatus(CustomerStatusFiled.getField(Integer.parseInt(cus.getBeforeCustomerStatus())).getDesc()); //修改前跟进状态
|
|
log.setBeforeCustomerStatus(CustomerStatusFiled.getField(Integer.parseInt(cus.getBeforeCustomerStatus())).getDesc()); //修改前跟进状态
|
|
|
log.setBeforeFollowSituation(CustomerFollowFiled.getField(Integer.parseInt(cus.getBeforeFollowSituation())).getDesc());//修改前跟进进度
|
|
log.setBeforeFollowSituation(CustomerFollowFiled.getField(Integer.parseInt(cus.getBeforeFollowSituation())).getDesc());//修改前跟进进度
|
|
|
log.setOperatorType(AFTConstants.CUSTOMER_TO_PUBLIC);
|
|
log.setOperatorType(AFTConstants.CUSTOMER_TO_PUBLIC);
|
|
|
|
|
+ }else if(operatorType.equals(AFTConstants.CUSTOMER_FOLLOW)){ //跟进客户
|
|
|
|
|
+ log.setAfterAdminName(TokenManager.getAdminToken().getName());//跟进前操作人
|
|
|
|
|
+ log.setBeforeCustomerIntention(getCompanyIntention(c.getCompanyIntention())); //修改前跟进意向
|
|
|
|
|
+ log.setBeforeCustomerStatus(CustomerStatusFiled.getField(c.getCustomerStatus()).getDesc()); //修改前跟进状态
|
|
|
|
|
+ log.setBeforeFollowSituation(CustomerFollowFiled.getField(c.getFollowSituation()).getDesc());//修改前跟进进度
|
|
|
|
|
+ log.setAfterAdminName(TokenManager.getAdminToken().getName());
|
|
|
|
|
+ log.setAfterFollowSituation(CustomerFollowFiled.getField(Integer.parseInt(cus.getFollowSituation())).getDesc()); //修改后跟进状态
|
|
|
|
|
+ log.setAfterCustomerIntention(getCompanyIntention(cus.getCompanyIntention())); //修改后跟进意向
|
|
|
|
|
+ log.setAfterCustomerStatus(CustomerStatusFiled.getField(Integer.parseInt(cus.getCustomerStatus())).getDesc()); //修改后客户状态
|
|
|
}
|
|
}
|
|
|
customerLogMapper.insert(log);
|
|
customerLogMapper.insert(log);
|
|
|
}
|
|
}
|
|
@@ -322,9 +337,9 @@ public class CustomerServiceImpl extends BaseMybatisDao<CustomerMapper> implemen
|
|
|
*/
|
|
*/
|
|
|
private List<CustomerOut> descResult(List<CustomerOut> outList){
|
|
private List<CustomerOut> descResult(List<CustomerOut> outList){
|
|
|
for(CustomerOut out : outList){
|
|
for(CustomerOut out : outList){
|
|
|
- out.setAdminName("***");
|
|
|
|
|
- out.set_followSituation("***");
|
|
|
|
|
- out.set_companyIntention("***");
|
|
|
|
|
|
|
+ //out.setAdminName("***");
|
|
|
|
|
+ //out.set_followSituation("***");
|
|
|
|
|
+ //out.set_companyIntention("***");
|
|
|
out.setContactName("***");
|
|
out.setContactName("***");
|
|
|
out.setMobile("***");
|
|
out.setMobile("***");
|
|
|
out.setTelNum("***");
|
|
out.setTelNum("***");
|
|
@@ -337,4 +352,10 @@ public class CustomerServiceImpl extends BaseMybatisDao<CustomerMapper> implemen
|
|
|
|
|
|
|
|
return customerLogMapper.listCustomerLog(customerId);
|
|
return customerLogMapper.listCustomerLog(customerId);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public CustomerOut findCustomerHistory(String customerId) {
|
|
|
|
|
+
|
|
|
|
|
+ return customerMapper.findCustomerHistory(customerId);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|