Commit d85625ad9c36c018b43321deb319edbdcc3494cc
1 parent
a51d2a0c
更换获取部门信息接口
Showing
2 changed files
with
2 additions
and
2 deletions
urbanops-module-system/src/main/java/com/zteits/urbanops/module/system/service/user/AdminUserServiceImpl.java
| @@ -690,7 +690,7 @@ public class AdminUserServiceImpl implements AdminUserService { | @@ -690,7 +690,7 @@ public class AdminUserServiceImpl implements AdminUserService { | ||
| 690 | // 递归查找父部门链中parentId=100的部门 | 690 | // 递归查找父部门链中parentId=100的部门 |
| 691 | Long result = findParentDeptWithParentId(dept.getParentId(), 100L); | 691 | Long result = findParentDeptWithParentId(dept.getParentId(), 100L); |
| 692 | // 如果找不到parentId=100的部门,返回当前部门的id作为默认值 | 692 | // 如果找不到parentId=100的部门,返回当前部门的id作为默认值 |
| 693 | - return result != null ? result : dept.getId(); | 693 | + return result != null ? result : dept.getParentId(); |
| 694 | } | 694 | } |
| 695 | 695 | ||
| 696 | /** | 696 | /** |
urbanops-server/src/main/resources/application.yaml
| @@ -3,7 +3,7 @@ spring: | @@ -3,7 +3,7 @@ spring: | ||
| 3 | name: urbanops-server | 3 | name: urbanops-server |
| 4 | 4 | ||
| 5 | profiles: | 5 | profiles: |
| 6 | - active: dev | 6 | + active: prod |
| 7 | 7 | ||
| 8 | main: | 8 | main: |
| 9 | allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。 | 9 | allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。 |