|
|
@ -4,6 +4,7 @@ import java.util.*; |
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import javax.annotation.Resource; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.dxhy.common.util.StringHelper; |
|
|
|
import org.apache.commons.lang.RandomStringUtils; |
|
|
|
import org.apache.commons.lang.RandomStringUtils; |
|
|
|
import org.apache.commons.lang.StringUtils; |
|
|
|
import org.apache.commons.lang.StringUtils; |
|
|
|
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; |
|
|
|
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; |
|
|
@ -282,10 +283,24 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUserEntity> i |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//获取组织编码
|
|
|
|
|
|
|
|
List<SysCompanyEntity> companyEntitys = sysUserOrgService.getOrgsByUserId(userEntity.getUserId()); |
|
|
|
|
|
|
|
if (companyEntitys != null && companyEntitys.size() > 0){ |
|
|
|
|
|
|
|
for (SysCompanyEntity companyEntity : companyEntitys) { |
|
|
|
|
|
|
|
if (companyEntity != null) { |
|
|
|
|
|
|
|
if (StringHelper.isNotBlank(companyEntity.getCompanyCode()) && StringHelper.isNotBlank(companyEntity.getCompanyName())){ |
|
|
|
|
|
|
|
String companyName ="("+companyEntity.getCompanyCode()+")"+companyEntity.getCompanyName(); |
|
|
|
|
|
|
|
companyEntity.setCompanyName(companyName); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
user = this.toUser(user, userEntity); |
|
|
|
user = this.toUser(user, userEntity); |
|
|
|
user.setPassword(""); |
|
|
|
user.setPassword(""); |
|
|
|
user.setUserOrg(userOrgEntity); |
|
|
|
user.setUserOrg(userOrgEntity); |
|
|
|
user.setUserBusiness(businessList); |
|
|
|
user.setUserBusiness(businessList); |
|
|
|
|
|
|
|
user.setCompanyCodes(companyEntitys); |
|
|
|
|
|
|
|
|
|
|
|
user.setUserModels(this.getUserCompanyList(userEntity.getCompany())); |
|
|
|
user.setUserModels(this.getUserCompanyList(userEntity.getCompany())); |
|
|
|
// 刷新菜单缓存处理
|
|
|
|
// 刷新菜单缓存处理
|
|
|
|