Commit 6984bfe1 authored by 技术部-任文超's avatar 技术部-任文超

修复联系人创建时间的bug

parent 6e0bfa5a
...@@ -111,8 +111,7 @@ public class ContactServiceImpl implements IContactService { ...@@ -111,8 +111,7 @@ public class ContactServiceImpl implements IContactService {
c.setUpdateAt(now); c.setUpdateAt(now);
if (userContactCount > i) { if (userContactCount > i) {
c.setId(userContact.get(i).getId()); c.setId(userContact.get(i).getId());
c.setCreatedAt(contacts.get(i).getCreatedAt() == null ? now : contacts.get(i).getCreatedAt()); c.setCreatedAt(userContact.get(i).getCreatedAt() == null ? now : userContact.get(i).getCreatedAt());
c.setRelation(contacts.get(i).getRelation() == null ? Relation.OTHER : contacts.get(i).getRelation());
} }
} }
} }
......
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