ot业务单委托方只查询当前登录人组织数据;
This commit is contained in:
+8
-8
@@ -5279,18 +5279,18 @@ public class UserApplicationService {
|
|||||||
|
|
||||||
// 数据隔离:根据 organizationId 字段来实现
|
// 数据隔离:根据 organizationId 字段来实现
|
||||||
// 如果当前登录用户的organizationId为2827,可查询全部组织数据;其他组织只能查询自己组织的数据
|
// 如果当前登录用户的organizationId为2827,可查询全部组织数据;其他组织只能查询自己组织的数据
|
||||||
// if (loginUserOrganizationId != null && loginUserOrganizationId.equals(2827L)) {
|
if (loginUserOrganizationId != null && loginUserOrganizationId.equals(2827L)) {
|
||||||
// 南光组织:查询所有组织的数据,不设置 organizationId 和 userId 过滤条件
|
// 南光组织:查询所有组织的数据,不设置 organizationId 和 userId 过滤条件
|
||||||
// filterOrganizationId = null;
|
filterOrganizationId = null;
|
||||||
// userId = null;
|
userId = null;
|
||||||
// } else {
|
} else {
|
||||||
// // 其他组织:只查询自己组织的数据
|
// 其他组织:只查询自己组织的数据
|
||||||
// filterOrganizationId = loginUserOrganizationId;
|
filterOrganizationId = loginUserOrganizationId;
|
||||||
// // 如果当前登录用户是货主或企业用户,只查询当前登录用户的信息
|
// 如果当前登录用户是货主或企业用户,只查询当前登录用户的信息
|
||||||
// if(loginUser.getUserPo().getBusinessType()==1||loginUser.getUserPo().getBusinessType()==3||loginUser.getUserPo().getUserAccountType()==5){
|
// if(loginUser.getUserPo().getBusinessType()==1||loginUser.getUserPo().getBusinessType()==3||loginUser.getUserPo().getUserAccountType()==5){
|
||||||
// userId = loginUser.getUserid();
|
// userId = loginUser.getUserid();
|
||||||
// }
|
// }
|
||||||
// }
|
}
|
||||||
return userDomainService.findAllShipperInfo(userId, filterOrganizationId);
|
return userDomainService.findAllShipperInfo(userId, filterOrganizationId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user