禁用判断是否是负责人
This commit is contained in:
parent
fa9108fc1c
commit
b7e4551a6b
@ -1496,6 +1496,11 @@ namespace APT.FM.WebApi.Controllers.Api.FM
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
var chargeDepart = GetEntity<T_FM_DEPARTMENT>(t=>t.USER_ID == user.ID && t.ENABLE_STATUS == 0);
|
||||||
|
if (chargeDepart != null)
|
||||||
|
{
|
||||||
|
throw new Exception(user.NAME+"是"+ chargeDepart.NAME+"负责人,请先修改后再禁用该人员");
|
||||||
|
}
|
||||||
user.ENABLE_STATUS = 1;
|
user.ENABLE_STATUS = 1;
|
||||||
user.APPROVE_ROLE_ID = null;
|
user.APPROVE_ROLE_ID = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user