公司培训计划触发 接收角色 配置
This commit is contained in:
parent
dac80c8288
commit
100dc5f5f8
@ -1495,7 +1495,16 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
T_FM_USER user = UserService.GetSafeApproveUser(config.ORG_ID.Value);//默认安环专员
|
T_FM_USER user = null;
|
||||||
|
if (config.APPROVAL_ROLE_ID.HasValue)
|
||||||
|
{
|
||||||
|
//走配置
|
||||||
|
user = GetEntity<T_FM_USER>(e => e.APPROVE_ROLE_ID.HasValue && e.APPROVE_ROLE_ID.Value == config.APPROVAL_ROLE_ID.Value && e.ENABLE_STATUS == 0 && !e.IS_DELETED);
|
||||||
|
}
|
||||||
|
if (user == null)
|
||||||
|
{
|
||||||
|
user = UserService.GetSafeApproveUser(config.ORG_ID.Value);//默认安环专员
|
||||||
|
}
|
||||||
if (user == null)
|
if (user == null)
|
||||||
{
|
{
|
||||||
throw new Exception("未找到安环部相关审批人员!");
|
throw new Exception("未找到安环部相关审批人员!");
|
||||||
|
|||||||
@ -40,6 +40,7 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
{
|
{
|
||||||
entity.ORG_ID = APT.Infrastructure.Api.AppContext.CurrentSession.OrgId;
|
entity.ORG_ID = APT.Infrastructure.Api.AppContext.CurrentSession.OrgId;
|
||||||
}
|
}
|
||||||
|
entity.Nav_ApproveRole = null;
|
||||||
this.UnifiedCommit(() =>
|
this.UnifiedCommit(() =>
|
||||||
{
|
{
|
||||||
UpdateEntityNoCommit(entity);
|
UpdateEntityNoCommit(entity);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user