提交 8575b63d 编写于 作者: misaka's avatar misaka

潜在客户转换

上级 a31c1e07
...@@ -122,6 +122,7 @@ public class LeadExService extends LeadServiceImpl { ...@@ -122,6 +122,7 @@ public class LeadExService extends LeadServiceImpl {
cxt.setParams(params); cxt.setParams(params);
List<Connection> connections = connectionService.searchByParentKey(cxt).getContent() ; List<Connection> connections = connectionService.searchByParentKey(cxt).getContent() ;
if(connections.size() == 0){ if(connections.size() == 0){
connections = new ArrayList<>() ;
Connection connection = new Connection() ; Connection connection = new Connection() ;
connection.setRecord1id(et.getLeadid()); connection.setRecord1id(et.getLeadid());
connection.setRecord1idobjecttypecode(et.getFullname()); connection.setRecord1idobjecttypecode(et.getFullname());
...@@ -137,13 +138,13 @@ public class LeadExService extends LeadServiceImpl { ...@@ -137,13 +138,13 @@ public class LeadExService extends LeadServiceImpl {
} }
connectionService.create(connection); connectionService.create(connection);
connections.add(connection); connections.add(connection);
} }
// 建立商机 // 建立商机
Opportunity opportunity = new Opportunity() ; Opportunity opportunity = new Opportunity() ;
opportunity.setOpportunityname(et.getSubject());
opportunity.setParentcontactid(contact.getContactid()); opportunity.setParentcontactid(contact.getContactid());
opportunity.setParentcontactname(contact.getFullname()); opportunity.setParentcontactname(contact.getFullname());
opportunity.setParentaccountid(account.getAccountid()); opportunity.setParentaccountid(account.getAccountid());
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册