能力申请v3-bug fix

This commit is contained in:
Koi-tsk 2022-08-25 14:52:20 +08:00
parent f4939b34f4
commit 30b5ee12f0
1 changed files with 2 additions and 2 deletions

View File

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