Commit baadbcab by lal

提交

parent 3d350b6f
......@@ -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) {
crmClientContact.setCid(crmDataId);
crmClientContact.insert();
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