优化数据类型
This commit is contained in:
@@ -155,11 +155,11 @@ namespace ZR.Admin.WebApi.Controllers.System
|
||||
{
|
||||
return ToResponse(GetApiResult(ResultCode.CUSTOM_ERROR, $"存在下级部门,不允许删除"));
|
||||
}
|
||||
if (UserService.Queryable().Count(it => it.DeptId == deptId && it.DelFlag == "0") > 0)
|
||||
if (UserService.Queryable().Count(it => it.DeptId == deptId && it.DelFlag == 0) > 0)
|
||||
{
|
||||
return ToResponse(GetApiResult(ResultCode.CUSTOM_ERROR, $"部门存在用户,不允许删除"));
|
||||
}
|
||||
|
||||
|
||||
return SUCCESS(DeptService.Delete(deptId));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user