GroupProcessNode.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using OASystem.API.OAMethodLib.QiYeWeChatAPI;
  2. using OASystem.Domain.Entities.Groups;
  3. using OASystem.Infrastructure.Repositories.Groups;
  4. namespace OASystem.API.OAMethodLib.Quartz.Business
  5. {
  6. /// <summary>
  7. /// 团组流程节点提示通知
  8. /// </summary>
  9. public static class GroupProcessNode
  10. {
  11. private readonly static DelegationInfoRepository _grpDeleRep = AutofacIocManager.Instance.GetService<DelegationInfoRepository>();
  12. private static readonly ProcessOverviewRepository _procOverviewRep = AutofacIocManager.Instance.GetService<ProcessOverviewRepository>();
  13. private static readonly IQiYeWeChatApiService _qiYeWeChatApiService = AutofacIocManager.Instance.GetService<IQiYeWeChatApiService>();
  14. /// <summary>
  15. /// 企微通知
  16. /// </summary>
  17. public static async void QiYeWeChatNotifyAsync()
  18. {
  19. var currDt = DateTime.Now;
  20. var groupInfos = await _grpDeleRep._sqlSugar.Queryable<Grp_DelegationInfo>()
  21. .Where(x => x.IsDel == 0)
  22. .ToListAsync();
  23. }
  24. /// <summary>
  25. /// 企微预警通知
  26. /// </summary>
  27. public static async void QiYeWeChatWarnNotifyAsync()
  28. {
  29. var currDt = DateTime.Now;
  30. var groupInfos = await _grpDeleRep._sqlSugar.Queryable<Grp_DelegationInfo>()
  31. .Where(x => x.IsDel == 0)
  32. .ToListAsync();
  33. }
  34. }
  35. }