|
@@ -180,6 +180,10 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
//检测密码正确时
|
|
//检测密码正确时
|
|
UserVO userVO = new UserVO().setCompanyName(company.getCompanyName());
|
|
UserVO userVO = new UserVO().setCompanyName(company.getCompanyName());
|
|
userVO.setCompany(company);
|
|
userVO.setCompany(company);
|
|
|
|
+ WxCorpInfo info = wxCorpInfoMapper.selectOne(new QueryWrapper<WxCorpInfo>().eq("company_id", company.getId()));
|
|
|
|
+ if (info != null) {
|
|
|
|
+ userVO.setUserNameNeedTranslate(info.getSaasSyncContact());
|
|
|
|
+ }
|
|
BeanUtils.copyProperties(userList.get(0), userVO);
|
|
BeanUtils.copyProperties(userList.get(0), userVO);
|
|
if (userVO.getRoleId() == null || userVO.getRoleId() == 0) {
|
|
if (userVO.getRoleId() == null || userVO.getRoleId() == 0) {
|
|
httpRespMsg.setError(MessageUtils.message("user.noRole"));
|
|
httpRespMsg.setError(MessageUtils.message("user.noRole"));
|
|
@@ -1741,6 +1745,12 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ WxCorpInfo info = wxCorpInfoMapper.selectOne(new QueryWrapper<WxCorpInfo>().eq("company_id", company.getId()));
|
|
|
|
+ if (info != null) {
|
|
|
|
+ user.setUserNameNeedTranslate(info.getSaasSyncContact());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
UserVO userVO = new UserVO().setCompanyName(company.getCompanyName());
|
|
UserVO userVO = new UserVO().setCompanyName(company.getCompanyName());
|
|
userVO.setCompany(company);
|
|
userVO.setCompany(company);
|
|
BeanUtils.copyProperties(user, userVO);
|
|
BeanUtils.copyProperties(user, userVO);
|