Compare commits
No commits in common. "5b9bc66c20c562145a81651f27579a005e8db69a" and "d7f34dd05d1003d5a724dae9357c30067f86a893" have entirely different histories.
5b9bc66c20
...
d7f34dd05d
@ -105,9 +105,9 @@ namespace APT.BaseData.Domain.IServices.FM
|
|||||||
List<T_FM_USER> GetDepPostUser(ref string Msg, Guid DEPARTMENT_ID, Guid POST_ID, bool IsOnly);
|
List<T_FM_USER> GetDepPostUser(ref string Msg, Guid DEPARTMENT_ID, Guid POST_ID, bool IsOnly);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 找安环部人员 默认 安环安全员
|
/// 找安环部人员
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="UserType">1 NUM 从小到大 找第一个 10 NUM 找老大</param>
|
/// <param name="UserType">1 NUM 从小到大 找第一个 2 NUM 找老大</param>
|
||||||
/// <param name="ORG_ID">1</param>
|
/// <param name="ORG_ID">1</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
T_FM_USER GetSafeApproveUser(Guid ORG_ID, int UserType = 1);
|
T_FM_USER GetSafeApproveUser(Guid ORG_ID, int UserType = 1);
|
||||||
|
|||||||
@ -997,7 +997,7 @@ namespace APT.BaseData.Services.Services.FM
|
|||||||
#region 找安环部人员
|
#region 找安环部人员
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 找安环部人员 默认 安环安全员
|
/// 找安环部人员
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="UserType">1 NUM 从小到大 找第一个 10 NUM 找老大</param>
|
/// <param name="UserType">1 NUM 从小到大 找第一个 10 NUM 找老大</param>
|
||||||
/// <param name="ORG_ID">1</param>
|
/// <param name="ORG_ID">1</param>
|
||||||
|
|||||||
@ -25,11 +25,9 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
public class SETrainRecordController : AuthorizeApiController<T_SE_TRAIN_RECORD>
|
public class SETrainRecordController : AuthorizeApiController<T_SE_TRAIN_RECORD>
|
||||||
{
|
{
|
||||||
IFMNotificationTaskService NotificationTaskService { get; set; }
|
IFMNotificationTaskService NotificationTaskService { get; set; }
|
||||||
IFMUserService UserService { get; set; }
|
public SETrainRecordController(IFMNotificationTaskService notificationTaskService)
|
||||||
public SETrainRecordController(IFMNotificationTaskService notificationTaskService, IFMUserService userService)
|
|
||||||
{
|
{
|
||||||
NotificationTaskService = notificationTaskService;
|
NotificationTaskService = notificationTaskService;
|
||||||
UserService = userService;
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 保存
|
/// 保存
|
||||||
@ -519,17 +517,12 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
if (userCount == 0 && !isReSend)
|
if (userCount == 0 && !isReSend)
|
||||||
{
|
{
|
||||||
record.STATUS = SETrainRecordStatus.审阅中;
|
record.STATUS = SETrainRecordStatus.审阅中;
|
||||||
T_FM_USER chargeUser = UserService.GetSafeApproveUser(record.ORG_ID.Value, 10);
|
var chargeUser = GetEntity<T_FM_USER>(t => t.Nav_ApproveRole.NAME == "安环部负责人");
|
||||||
|
if (chargeUser == null)
|
||||||
//var chargeUser = GetEntity<T_FM_USER>(t => t.Nav_ApproveRole.NAME == "安环部负责人");
|
|
||||||
//if (chargeUser == null)
|
|
||||||
//{
|
|
||||||
// chargeUser = GetEntity<T_FM_USER>(t => t.Nav_ApproveRole.NAME == "安环部安全员");
|
|
||||||
//}
|
|
||||||
if (chargeUser != null)
|
|
||||||
{
|
{
|
||||||
sendNotices.Add(NotificationTaskService.InsertUserNoticeTaskModel("培训记录完成待审阅-" + record.Nav_Notify.NAME, Guid.Parse(filter.Keyword), filter.GetOrgId(), chargeUser.ID, chargeUser.NAME, DateTime.Now, DateTime.Now.AddDays(2), 1, "SE017_SHOWPRINT"));
|
chargeUser = GetEntity<T_FM_USER>(t => t.Nav_ApproveRole.NAME == "安环部安全员");
|
||||||
}
|
}
|
||||||
|
sendNotices.Add(NotificationTaskService.InsertUserNoticeTaskModel("培训记录完成待审阅-" + record.Nav_Notify.NAME, Guid.Parse(filter.Keyword), filter.GetOrgId(), chargeUser.ID, chargeUser.NAME, DateTime.Now, DateTime.Now.AddDays(2), 1, "SE017_SHOWPRINT"));
|
||||||
}
|
}
|
||||||
UnifiedCommit(() =>
|
UnifiedCommit(() =>
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user