Commit 368bb8ef authored by 技术部-任文超's avatar 技术部-任文超

修复bug

parent 95c8c886
...@@ -110,6 +110,7 @@ public class ContactServiceImpl implements IContactService { ...@@ -110,6 +110,7 @@ public class ContactServiceImpl implements IContactService {
if(Objects.isNull(c.getRelation())){ if(Objects.isNull(c.getRelation())){
c.setRelation(Relation.OTHER); c.setRelation(Relation.OTHER);
} }
c.setCreatedAt(now);
c.setUpdateAt(now); c.setUpdateAt(now);
if (CollectionUtils.isEmpty(userContact) || userContact.size() <= i) { if (CollectionUtils.isEmpty(userContact) || userContact.size() <= i) {
continue; continue;
...@@ -121,8 +122,6 @@ public class ContactServiceImpl implements IContactService { ...@@ -121,8 +122,6 @@ public class ContactServiceImpl implements IContactService {
c.setId(old.getId()); c.setId(old.getId());
if(Objects.nonNull(old.getCreatedAt())){ if(Objects.nonNull(old.getCreatedAt())){
c.setCreatedAt(old.getCreatedAt()); c.setCreatedAt(old.getCreatedAt());
}else{
c.setCreatedAt(now);
} }
} }
} }
......
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