Commit dabcf896 by 284718418@qq.com

修改 导入客户信息

parent 39836475
...@@ -1483,6 +1483,7 @@ public class CrmController { ...@@ -1483,6 +1483,7 @@ public class CrmController {
reader = getReaderByUrl(url); reader = getReaderByUrl(url);
reader.addHeaderAlias("*客户名称(必填)", "clientName"); reader.addHeaderAlias("*客户名称(必填)", "clientName");
reader.addHeaderAlias("*所属分组(必填)", "belongGroupName"); reader.addHeaderAlias("*所属分组(必填)", "belongGroupName");
reader.addHeaderAlias("*状态(必填)", "clientStatus");
reader.addHeaderAlias("行业", "industryName"); reader.addHeaderAlias("行业", "industryName");
reader.addHeaderAlias("微信", "wechat"); reader.addHeaderAlias("微信", "wechat");
reader.addHeaderAlias("产品", "product"); reader.addHeaderAlias("产品", "product");
...@@ -1515,6 +1516,7 @@ public class CrmController { ...@@ -1515,6 +1516,7 @@ public class CrmController {
String clientName = crmClientDataImportVo.getClientName(); // 客户名称(必填) String clientName = crmClientDataImportVo.getClientName(); // 客户名称(必填)
String belongGroupName = crmClientDataImportVo.getBelongGroupName(); // 分组名(必填) String belongGroupName = crmClientDataImportVo.getBelongGroupName(); // 分组名(必填)
String industryName = crmClientDataImportVo.getIndustryName(); // 行业名 String industryName = crmClientDataImportVo.getIndustryName(); // 行业名
String clientStatus = crmClientDataImportVo.getClientStatus(); // 客户数据状态(必填)
String clientTypeName = crmClientDataImportVo.getClientTypeName(); // 客户类型名 String clientTypeName = crmClientDataImportVo.getClientTypeName(); // 客户类型名
String clientCellphone = crmClientDataImportVo.getClientCellphone(); // 客户手机号 String clientCellphone = crmClientDataImportVo.getClientCellphone(); // 客户手机号
String clientTelephone = crmClientDataImportVo.getClientTelephone(); // 客户座机号 String clientTelephone = crmClientDataImportVo.getClientTelephone(); // 客户座机号
...@@ -1582,7 +1584,19 @@ public class CrmController { ...@@ -1582,7 +1584,19 @@ public class CrmController {
crmClientData.setBelongGroupName(belongGroupName); crmClientData.setBelongGroupName(belongGroupName);
crmClientData.setBelongGroup(crmBusinessGroup.getId()); crmClientData.setBelongGroup(crmBusinessGroup.getId());
crmClientData.setIndustryName(industryName); crmClientData.setIndustryName(industryName);
if(StringUtils.isNotBlank(clientStatus)){
if("潜在".equals(clientStatus)){
crmClientData.setClientStatus(1);
}else if("意向".equals(clientStatus)){
crmClientData.setClientStatus(2);
}else if("签约".equals(clientStatus)){
crmClientData.setClientStatus(3);
}else if("合作中".equals(clientStatus)){
crmClientData.setClientStatus(4);
}else if("已封档".equals(clientStatus)){
crmClientData.setClientStatus(5);
}
}
crmClientData.setWechat(wechat); crmClientData.setWechat(wechat);
crmClientData.setProduct(product); crmClientData.setProduct(product);
......
...@@ -34,6 +34,8 @@ public class CrmClientDataImportVo implements Serializable { ...@@ -34,6 +34,8 @@ public class CrmClientDataImportVo implements Serializable {
private String clientName; private String clientName;
// 组 // 组
private String belongGroupName; private String belongGroupName;
// 客户数据状态
private String clientStatus;
// 行业 // 行业
private String industryName; private String industryName;
// 客户类型 // 客户类型
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment