Commit 5d2964bb by ilal Committed by chenzg

提交

parent 009b32fa
...@@ -1481,13 +1481,14 @@ public class CrmController { ...@@ -1481,13 +1481,14 @@ public class CrmController {
Integer cid = crmClientData.getId(); Integer cid = crmClientData.getId();
if(linkname != null && linkcellphone != null) {
CrmClientContacts contacts = new CrmClientContacts(); CrmClientContacts contacts = new CrmClientContacts();
contacts.setName(linkname); contacts.setName(linkname);
contacts.setCellphone(linkcellphone); contacts.setCellphone(linkcellphone);
contacts.setCompany(linkcompany); contacts.setCompany(linkcompany);
if (linkgender == "女") if (("女").equals(linkgender))
contacts.setGender(0); contacts.setGender(0);
else if (linkgender == "男") else if (("男").equals(linkgender))
contacts.setGender(1); contacts.setGender(1);
else else
contacts.setGender(null); contacts.setGender(null);
...@@ -1501,6 +1502,10 @@ public class CrmController { ...@@ -1501,6 +1502,10 @@ public class CrmController {
contacts.insert(); contacts.insert();
} }
} }
}
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