Commit baadbcab by lal

提交

parent 3d350b6f
...@@ -407,11 +407,15 @@ public class CrmController { ...@@ -407,11 +407,15 @@ public class CrmController {
CrmClientAssociate.builder().cid(crmDataId).associateId(id).orgCode(getOrgCode(userBean)).build().insert(); CrmClientAssociate.builder().cid(crmDataId).associateId(id).orgCode(getOrgCode(userBean)).build().insert();
} }
List<CrmClientContacts> crmClientContacts = crmClientData.getCrmClientContacts(); List<CrmClientContacts> crmClientContacts = crmClientData.getCrmClientContacts();
int contactsnum = 0;
for (CrmClientContacts crmClientContact : crmClientContacts) { for (CrmClientContacts crmClientContact : crmClientContacts) {
if(crmClientContact.getName() != null) {
crmClientContact.setCid(crmDataId); crmClientContact.setCid(crmDataId);
crmClientContact.insert(); crmClientContact.insert();
contactsnum++;
} }
crmClientData.setContactsNum(crmClientContacts.size()); }
crmClientData.setContactsNum(contactsnum);
crmClientData.updateById(); crmClientData.updateById();
return ResultUtil.success("新增成功"); return ResultUtil.success("新增成功");
} }
......
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