|
|
|
@ -326,7 +326,6 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUserEntity> i |
|
|
|
|
} |
|
|
|
|
//获取组织编码
|
|
|
|
|
List<SysCompanyEntity> companyEntitys = sysUserOrgService.getOrgsByUserId(userEntity.getUserId()); |
|
|
|
|
List<SysCompanyEntity> emailCodes = new ArrayList<>(); |
|
|
|
|
if (companyEntitys != null && companyEntitys.size() > 0) { |
|
|
|
|
for (SysCompanyEntity companyEntity : companyEntitys) { |
|
|
|
|
if (companyEntity != null) { |
|
|
|
@ -340,8 +339,6 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUserEntity> i |
|
|
|
|
// company.setCompanyName("()暂无组织编码发票");
|
|
|
|
|
// company.setCompanyCode("88");
|
|
|
|
|
// companyEntitys.add(company);
|
|
|
|
|
List<SysCompanyEntity> collect = companyEntitys.stream().filter(e -> StringUtils.isNotBlank(e.getGfsh())).collect(Collectors.toList()); |
|
|
|
|
emailCodes = JSONObject.parseArray(collect.toString()).toJavaList(SysCompanyEntity.class); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
user = this.toUser(user, userEntity); |
|
|
|
@ -349,10 +346,10 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUserEntity> i |
|
|
|
|
user.setUserOrg(userOrgEntity); |
|
|
|
|
user.setUserBusiness(businessList); |
|
|
|
|
user.setCompanyCodes(companyEntitys); |
|
|
|
|
user.setEmailCodes(emailCodes); |
|
|
|
|
user.setUserModels(this.getUserCompanyList(userEntity.getCompany())); |
|
|
|
|
// 刷新菜单缓存处理
|
|
|
|
|
this.setMetnuRedis(userEntity.getUserId()); |
|
|
|
|
user.setEmailCodes(sysUserOrgService.getEmailOrgsByUserId(userEntity.getUserId())); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
} |
|
|
|
|