Commit 6655c40e by leialin

Merge branch 'lal' into 'develop'

Lal

See merge request 8timerv2/8timerapiv200!278
parents c7e8b256 9e2c4fba
......@@ -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