fixed 根据项目ID查询所属组织标识,取消权限拦截

This commit is contained in:
xxq250 2025-05-20 11:18:15 +08:00
parent 890d0d9f50
commit 5dc02cdd33
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}
}