Skip to content

Commit 8405471

Browse files
authored
fix: 修复新增和编辑部门无法使用已删除的部门名称问题 (#60)
1 parent 1e0b384 commit 8405471

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)