修改导入用户bug
parent
3fbffef136
commit
63d883956b
|
|
@ -814,7 +814,6 @@ public class UserUpdateExe {
|
|||
UserE userE = new UserE();
|
||||
UserDO userDO = userRepository.getById( id);
|
||||
CorpInfoDO corpInfoDO = corpInfoRepository.getById(userDO.getCorpinfoId());
|
||||
|
||||
userE.resetPassword(zcloudTenantTypeConfigFacade.getPasswordByCode(corpInfoDO.getType()));
|
||||
userRepository.changePassword(id, userE.getPassword());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -297,6 +297,8 @@ public class CorpInfoRepositoryImpl extends BaseRepositoryImpl<CorpInfoMapper, C
|
|||
if (!ObjectUtils.isEmpty(params.get("menuPath"))) {
|
||||
menuPerms = MenuEnum.getMenuKeyByPath(params.get("menuPath").toString());
|
||||
}
|
||||
SSOUser ssoUser = AuthContext.get();
|
||||
params.put("tenantId",ssoUser.getTenantId());
|
||||
IPage<CorpInfoDO> result = corpInfoMapper.corpUserMiddlePage(iPage, params, menuPerms);
|
||||
return PageHelper.pageToResponse(result, result.getRecords());
|
||||
}
|
||||
|
|
@ -342,8 +344,13 @@ public class CorpInfoRepositoryImpl extends BaseRepositoryImpl<CorpInfoMapper, C
|
|||
CorpInfoDO corpInfoDO = corpInfoMapper.selectById(AuthContext.getTenantId());
|
||||
if(corpInfoDO == null)
|
||||
throw new BizException("当前企业不存在");
|
||||
try {
|
||||
if(zcloudTenantTypeConfigFacade.getDefaultType("defaultType0001").equals(corpInfoDO.getType()))
|
||||
return true;
|
||||
} catch (Exception e){
|
||||
throw new BizException("未配置默认监管端租户类型,请联系管理员配置后操作。");
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -43,6 +43,9 @@
|
|||
<if test="params.eqCorpState != null and params.eqCorpState.trim() != ''">
|
||||
AND c.corp_state = #{params.eqCorpState}
|
||||
</if>
|
||||
<if test="params.tenantId != null and params.tenantId != ''">
|
||||
AND c.tenant_id = #{params.tenantId}
|
||||
</if>
|
||||
group by c.id
|
||||
ORDER BY
|
||||
c.corp_order ASC,
|
||||
|
|
|
|||
Loading…
Reference in New Issue