|
|
@@ -54,7 +54,7 @@ public class CountryPermissionAspect {
|
|
|
List<Long> deptList = this.getDeptList();
|
|
|
String countryFields = requiresCountryPermissions.countryFields();
|
|
|
String lineFields = requiresCountryPermissions.lineFields();
|
|
|
- String deptCodeFields = requiresCountryPermissions.lineFields();
|
|
|
+ String deptCodeFields = requiresCountryPermissions.deptCodeFields();
|
|
|
|
|
|
String lineId = "";
|
|
|
String countryId = "";
|
|
|
@@ -92,11 +92,9 @@ public class CountryPermissionAspect {
|
|
|
if (StringUtils.isNotEmpty(feederCountryId) && !countyList.contains(feederCountryId)) {
|
|
|
throw new BusinessException("当前用户无权限访问");
|
|
|
}
|
|
|
- if (deptId != -1L && !deptList.contains(deptId)) {
|
|
|
+ if (deptId != null && deptId != -1L && !deptList.contains(deptId)) {
|
|
|
throw new BusinessException("当前用户无权限访问");
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
//查询登录人的所有机构区县信息
|