|
@@ -24,6 +24,7 @@ using OASystem.Domain.Entities.Customer;
|
|
|
using OASystem.Domain.Entities.Financial;
|
|
|
using OASystem.Domain.Entities.Groups;
|
|
|
using OASystem.Domain.ViewModels.Groups;
|
|
|
+using OASystem.Domain.ViewModels.Statistics;
|
|
|
using OASystem.Infrastructure.Repositories.Financial;
|
|
|
using OASystem.Infrastructure.Repositories.Groups;
|
|
|
using Quartz.Util;
|
|
@@ -801,6 +802,24 @@ namespace OASystem.API.Controllers
|
|
|
await GeneralMethod.MessageIssueAndNotification(MessageTypeEnum.GroupBusinessOperations, title, content, userIds, diId);
|
|
|
}
|
|
|
|
|
|
+ #region 应用推送
|
|
|
+ try
|
|
|
+ {
|
|
|
+ await AppNoticeLibrary.SendChatMsg_GroupStatus_Create(diId, QiyeWeChatEnum.CompanyCRMChat);
|
|
|
+ Sys_Users users = _airTicketResRep.Query<Sys_Users>(s => s.Id == dto.UserId).First();
|
|
|
+ Sys_Department department = _airTicketResRep.Query<Sys_Department>(s => s.Id == users.DepId).First();
|
|
|
+ if (department.Id == 6 && !string.IsNullOrEmpty(users.QiyeChatUserId))
|
|
|
+ {
|
|
|
+ List<string> userList = new List<string>() { users.QiyeChatUserId };
|
|
|
+ await AppNoticeLibrary.SendUserMsg_GroupStatus_Create(diId, userList);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ catch (Exception ex)
|
|
|
+ {
|
|
|
+ }
|
|
|
+ #endregion
|
|
|
+
|
|
|
+
|
|
|
//默认创建倒推表
|
|
|
await _invertedListRep._Create(dto.UserId, diId);
|
|
|
}
|