|
@@ -157,8 +157,12 @@ public class UserArchivesServiceImpl extends BaseMybatisDao< UserArchivesMapper>
|
|
|
if (userArchives.getEarlyCommunication()!=null){
|
|
if (userArchives.getEarlyCommunication()!=null){
|
|
|
use.setEarlyCommunication(userArchives.getEarlyCommunication());
|
|
use.setEarlyCommunication(userArchives.getEarlyCommunication());
|
|
|
}
|
|
}
|
|
|
- this.userArchivesMapper.update(userArchives);
|
|
|
|
|
- return use;
|
|
|
|
|
|
|
+ if(userArchives.getId()==null){
|
|
|
|
|
+ return insert(userArchives);
|
|
|
|
|
+ }else {
|
|
|
|
|
+ this.userArchivesMapper.update(userArchives);
|
|
|
|
|
+ return use;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|