forked from Gitlink/microservices
fixed 根据项目ID查询所属组织标识,取消权限拦截
This commit is contained in:
parent
890d0d9f50
commit
5dc02cdd33
|
@ -626,9 +626,9 @@ public class PmsEnterpriseServiceImpl implements IPmsEnterpriseService {
|
|||
public PmsEnterprise getEnterpriseByProjectId(Long projectId) {
|
||||
PmsProject pmsProject = pmsProjectMapper.selectPmsProjectById(projectId);
|
||||
PmsEnterprise pmsEnterprise = pmsEnterpriseMapper.selectPmsEnterpriseById(pmsProject.getPmsEnterpriseId());
|
||||
// 手动注入上下文
|
||||
SecurityContextHolder.setDeptId(pmsEnterprise.getDeptId().toString());
|
||||
checkEnterpriseIsCurrentEnterprise(pmsEnterprise);
|
||||
// // 手动注入上下文
|
||||
// SecurityContextHolder.setDeptId(pmsEnterprise.getDeptId().toString());
|
||||
// checkEnterpriseIsCurrentEnterprise(pmsEnterprise);
|
||||
return pmsEnterprise;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue