Merge branch 'main' of http://47.122.43.22:3000/wjn/mh_sms
This commit is contained in:
commit
513aadd3cc
@ -408,5 +408,38 @@ namespace APT.HM.WebApi.Controllers.Api
|
|||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 审批流回调
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="id"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpPost, Route("RejectUpdate")]
|
||||||
|
public JsonActionResult<bool> RejectUpdate([FromBody] T_PF_APPROVE entity)
|
||||||
|
{
|
||||||
|
return SafeExecute<bool>(() =>
|
||||||
|
{
|
||||||
|
T_PF_APPROVE modelApp = null;
|
||||||
|
List<T_PF_APPROVE_DETAIL> listAppDetail = null;
|
||||||
|
T_FM_NOTIFICATION_TASK taskFinish = null;
|
||||||
|
string Msg = string.Empty;
|
||||||
|
var record = GetEntity<T_HM_HAZARD_TASK>(entity.DATA_ID, new string[] { "Nav_LiableUser" });
|
||||||
|
bool ResultGetInfo = ApproveCallBackService.GetApproject(entity, ref modelApp, ref listAppDetail, ref taskFinish, ref Msg);
|
||||||
|
if (!ResultGetInfo)
|
||||||
|
throw new Exception("驳回失败!");
|
||||||
|
record.STATUS = FOPreMeetingStatusEnum.审批拒绝;
|
||||||
|
var sendNotice = NotificationTaskService.InsertUserNoticeTaskModel("职业危害辨识任务-驳回", entity.DATA_ID, record.ORG_ID, (Guid)record.LIABLE_USER_ID, record.Nav_LiableUser.NAME, DateTime.Now, DateTime.Now.AddDays(7), 0, "HM102");
|
||||||
|
UnifiedCommit(() =>
|
||||||
|
{
|
||||||
|
if (record != null)
|
||||||
|
UpdateEntityNoCommit(record); //保存主表
|
||||||
|
if (sendNotice != null)
|
||||||
|
AddEntityNoCommit(sendNotice);
|
||||||
|
});
|
||||||
|
|
||||||
|
return true;
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user