Lyyyi дней назад: 2
Родитель
Сommit
cb8483651d

+ 49 - 0
OASystem/OASystem.Api/OAMethodLib/Quartz/Business/GroupProcessNode.cs

@@ -0,0 +1,49 @@
+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();
+
+
+
+
+        }
+
+    }
+}

+ 0 - 24
OASystem/OASystem.Api/OAMethodLib/Quartz/Business/GrpNodeAlert.cs

@@ -1,24 +0,0 @@
-using OASystem.API.OAMethodLib.QiYeWeChatAPI;
-using OASystem.Infrastructure.Repositories.Groups;
-
-namespace OASystem.API.OAMethodLib.Quartz.Business
-{
-    /// <summary>
-    /// 团组流程节点预警
-    /// </summary>
-    public static class GrpNodeAlert
-    {
-        private readonly static DelegationInfoRepository _grpDeleRep = AutofacIocManager.Instance.GetService<DelegationInfoRepository>();
-        private static readonly IQiYeWeChatApiService _qiYeWeChatApiService = AutofacIocManager.Instance.GetService<IQiYeWeChatApiService>();
-
-        /// <summary>
-        /// 商邀流程节点预警消息推送
-        /// 
-        /// </summary>
-        public static async void PostMessage() 
-        {
-
-        }
-
-    }
-}

Разница между файлами не показана из-за своего большого размера
+ 893 - 293
OASystem/OASystem.Infrastructure/Repositories/Groups/ProcessOverviewRepository.cs