调整跨区判断

This commit is contained in:
wangliwen 2022-08-25 10:00:13 +08:00
parent 12393ec5cc
commit 6a306a8a13
1 changed files with 2 additions and 1 deletions

View File

@ -288,7 +288,8 @@ public class AbilityCenterControllerV3 {
if (cityApply && resourceDeptType == 2) {
cityApplyCity = Boolean.TRUE; // 市区申请市区
}
if (!cityApply && (user.getDeptId() != sysDeptDTO.getId())) { // 非市申请且发起人与资源所属部门不一致
SysDeptDTO userDept = sysDeptService.get(user.getDeptId());
if (!cityApply && (userDept.getDistrict() != sysDeptDTO.getDistrict())) { // 非市申请且发起人与资源所属区县不一致
crossRegion = Boolean.TRUE; // 跨区
}
}