Skip to content

Commit c48c7bc

Browse files
authored
fix: 修复新增和编辑部门无法使用已删除的部门名称问题 (#10)
* fix: 修复新增和编辑部门无法使用已删除的部门名称问题 * docs: 新增更新日志
1 parent a7504f0 commit c48c7bc

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# 更新日志
22

3+
## 未发布
4+
5+
### BUG修复
6+
7+
1.修复新增和编辑部门无法使用已删除的部门名称问题 (#10)。
8+
9+
### 代码优化
10+
11+
1.优化数据权限依赖 (#8)。
12+
2.动态导入定时任务函数,移除eval (#9)。
13+
314
## RuoYi-Vue-FastAPI v1.8.0
415

516
### 项目依赖

ruoyi-fastapi-backend/module_admin/dao/dept_dao.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ async def get_dept_detail_by_info(cls, db: AsyncSession, dept: DeptModel) -> Uni
6060
select(SysDept).where(
6161
SysDept.parent_id == dept.parent_id if dept.parent_id else True,
6262
SysDept.dept_name == dept.dept_name if dept.dept_name else True,
63+
SysDept.del_flag == '0',
6364
)
6465
)
6566
)

0 commit comments

Comments
 (0)