| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- using OASystem.API.OAMethodLib.QiYeWeChatAPI;
- using OASystem.Domain.Entities.Groups;
- using OASystem.Infrastructure.Repositories.Groups;
- namespace OASystem.API.OAMethodLib.Quartz.Business
- {
- /// <summary>
- /// 团组流程节点提示通知
- /// </summary>
- public static class GroupProcessNode
- {
- private readonly static DelegationInfoRepository _grpDeleRep = AutofacIocManager.Instance.GetService<DelegationInfoRepository>();
- private static readonly ProcessOverviewRepository _procOverviewRep = AutofacIocManager.Instance.GetService<ProcessOverviewRepository>();
- private static readonly IQiYeWeChatApiService _qiYeWeChatApiService = AutofacIocManager.Instance.GetService<IQiYeWeChatApiService>();
- /// <summary>
- /// 企微通知
- /// </summary>
- public static async void QiYeWeChatNotifyAsync()
- {
- var currDt = DateTime.Now;
- var groupInfos = await _grpDeleRep._sqlSugar.Queryable<Grp_DelegationInfo>()
- .Where(x => x.IsDel == 0)
- .ToListAsync();
- }
- /// <summary>
- /// 企微预警通知
- /// </summary>
- public static async void QiYeWeChatWarnNotifyAsync()
- {
- var currDt = DateTime.Now;
- var groupInfos = await _grpDeleRep._sqlSugar.Queryable<Grp_DelegationInfo>()
- .Where(x => x.IsDel == 0)
- .ToListAsync();
- }
- }
- }
|