|
|
|
@ -6,12 +6,15 @@ import io.sc.platform.orm.converter.NumericBooleanConverter; |
|
|
|
import io.sc.platform.orm.entity.CorporationAuditorEntity; |
|
|
|
import io.sc.platform.orm.entity.DesensitizedEntity; |
|
|
|
import io.sc.platform.orm.service.support.Desensitizer; |
|
|
|
import io.sc.platform.security.service.support.Org; |
|
|
|
import io.sc.platform.system.api.user.UserVo; |
|
|
|
import io.sc.platform.system.department.jpa.entity.DepartmentEntity; |
|
|
|
import io.sc.platform.system.org.jpa.entity.OrgEntity; |
|
|
|
import io.sc.platform.system.role.jpa.entity.RoleEntity; |
|
|
|
import io.sc.platform.system.user.convert.*; |
|
|
|
import io.sc.platform.system.user.jpa.support.UserEntityJsonSerializer; |
|
|
|
import io.sc.platform.util.ObjectMapperUtil; |
|
|
|
import io.sc.platform.util.StringUtil; |
|
|
|
import org.hibernate.annotations.GenericGenerator; |
|
|
|
import org.hibernate.annotations.Parameter; |
|
|
|
import org.hibernate.annotations.Type; |
|
|
|
@ -189,12 +192,20 @@ public class UserEntity extends CorporationAuditorEntity<UserVo> implements Dese |
|
|
|
vo.setCredentialsExpired(this.getCredentialsExpired()); |
|
|
|
vo.setDefaultRoleId(this.getDefaultRoleId()); |
|
|
|
vo.setDefaultOrgId(this.getDefaultOrgId()); |
|
|
|
if(this.getOrgs()!=null && !this.getOrgs().isEmpty()){ |
|
|
|
List<String> orgNames =new ArrayList<>(); |
|
|
|
for(OrgEntity org : this.getOrgs()){ |
|
|
|
orgNames.add(org.getName()); |
|
|
|
} |
|
|
|
vo.setOrgNames(orgNames); |
|
|
|
} |
|
|
|
vo.setEmail(this.getEmail()); |
|
|
|
vo.setPhone(this.getPhone()); |
|
|
|
vo.setMobile(this.getMobile()); |
|
|
|
vo.setWeixin(this.getWeixin()); |
|
|
|
vo.setQq(this.getQq()); |
|
|
|
vo.setLastReadAnnouncementDate(this.getLastReadAnnouncementDate()); |
|
|
|
|
|
|
|
return vo; |
|
|
|
} |
|
|
|
|
|
|
|
|