🐛fix部门表字段属性更改导致添加失败

This commit is contained in:
不做码农
2023-07-31 18:42:08 +08:00
committed by DESKTOP-H2PAFLR\Administrator
parent 1dbeba88a5
commit f4174ccdc8
2 changed files with 2 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ namespace ZR.Service.System
{
SysDept info = GetFirst(it => it.DeptId == dept.ParentId);
//如果父节点不为正常状态,则不允许新增子节点
if (info != null && !UserConstants.DEPT_NORMAL.Equals(info?.Status))
if (info != null && UserConstants.DEPT_NORMAL != info?.Status)
{
throw new CustomException("部门停用,不允许新增");
}