diff --git a/ZR.Model/System/UserConstants.cs b/ZR.Model/System/UserConstants.cs
index a944b6e..e023591 100644
--- a/ZR.Model/System/UserConstants.cs
+++ b/ZR.Model/System/UserConstants.cs
@@ -30,7 +30,7 @@
///
/// 部门正常状态
///
- public static string DEPT_NORMAL = "0";
+ public static int DEPT_NORMAL = 0;
///
/// 部门停用状态
diff --git a/ZR.Service/System/SysDeptService.cs b/ZR.Service/System/SysDeptService.cs
index 78bb0ba..3669322 100644
--- a/ZR.Service/System/SysDeptService.cs
+++ b/ZR.Service/System/SysDeptService.cs
@@ -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("部门停用,不允许新增");
}