🐛fix部门表字段属性更改导致添加失败
This commit is contained in:
parent
e627ddc60d
commit
946f4a6de9
@ -30,7 +30,7 @@
|
||||
/// <summary>
|
||||
/// 部门正常状态
|
||||
/// </summary>
|
||||
public static string DEPT_NORMAL = "0";
|
||||
public static int DEPT_NORMAL = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 部门停用状态
|
||||
|
||||
@ -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("部门停用,不允许新增");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user