This commit is contained in:
何美荣 2026-09-10 11:20:06 +08:00
parent b7e4551a6b
commit 7d26268f9e

View File

@ -1499,7 +1499,7 @@ namespace APT.FM.WebApi.Controllers.Api.FM
var chargeDepart = GetEntity<T_FM_DEPARTMENT>(t=>t.USER_ID == user.ID && t.ENABLE_STATUS == 0); var chargeDepart = GetEntity<T_FM_DEPARTMENT>(t=>t.USER_ID == user.ID && t.ENABLE_STATUS == 0);
if (chargeDepart != null) if (chargeDepart != null)
{ {
throw new Exception(user.NAME+"是"+ chargeDepart.NAME+"负责人,请先修改后再禁用该人员"); 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;