Commit 9b460b98 by lal Committed by chenzg

提交

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