Browse Source

1、行程代码变更通知指定人员

amigotrip 8 months ago
parent
commit
3fd02fb31e

+ 0 - 2
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -2316,8 +2316,6 @@ namespace OASystem.API.Controllers
 
                     await AppNoticeLibrary.SendChatMsg_GroupStatus_ApplyFee(ccpId, sign, QiyeWeChatEnum.GuoJiaoLeaderChat);
 
-                    //机票费用录入变更通知
-                    await AppNoticeLibrary.SendUserMsg_GroupShare_ToDP(dto.CardPaymentOpData.DIId, dto.CardPaymentOpData.CreateUserId);
                 }
                 catch (Exception ex)
                 {

+ 17 - 7
OASystem/OASystem.Api/Controllers/ResourceController.cs

@@ -1,12 +1,15 @@
 using Aspose.Words;
 using NPOI.HPSF;
 using NPOI.POIFS.Crypt.Dsig;
+using NPOI.SS.Formula.Functions;
 using OASystem.API.OAMethodLib;
+using OASystem.API.OAMethodLib.QiYeWeChatAPI.AppNotice;
 using OASystem.Domain.Dtos.Resource;
 using OASystem.Domain.Entities.Groups;
 using OASystem.Domain.ViewModels.Groups;
 using OASystem.Domain.ViewModels.QiYeWeChat;
 using OASystem.Infrastructure.Repositories.Groups;
+using Org.BouncyCastle.Asn1.Ocsp;
 using Org.BouncyCastle.Utilities;
 using Quartz.Util;
 using System.Collections.Generic;
@@ -2453,20 +2456,27 @@ Inner Join Sys_Department as d With(Nolock) On u.DepId=d.Id Where m.Id={0} ", _m
         [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
         public async Task<IActionResult> OpTicketBlackCode(OpTicketBlackCodeDto dto)
         {
+           
+            Result groupData = await _ticketBlackCodeRep.OpTicketBlackCode(dto);
+            if (groupData.Code != 0)
+            {
+                return Ok(JsonView(false, groupData.Msg));
+            }
+
             try
             {
-                Result groupData = await _ticketBlackCodeRep.OpTicketBlackCode(dto);
-                if (groupData.Code != 0)
-                {
-                    return Ok(JsonView(false, groupData.Msg));
-                }
-                return Ok(JsonView(true, groupData.Msg, groupData.Data));
+                //行程代码变更通知
+                await AppNoticeLibrary.SendUserMsg_GroupShare_ToDP(dto.DiId, dto.CreateUserId);
             }
             catch (Exception ex)
             {
-                return Ok(JsonView(false, "程序错误!"));
+
                 throw;
             }
+
+
+            return Ok(JsonView(true, groupData.Msg, groupData.Data));
+           
         }
 
         /// <summary>

+ 2 - 2
OASystem/OASystem.Api/OAMethodLib/QiYeWeChatAPI/AppNotice/Library.cs

@@ -861,7 +861,7 @@ namespace OASystem.API.OAMethodLib.QiYeWeChatAPI.AppNotice
         #endregion
 
         /// <summary>
-        /// 机票费用录入确认通知发送国交经理、主管、王鸽
+        /// 机票行程代码录入变更通知发送国交经理、主管、王鸽
         /// </summary>
         /// <param name="diId"></param>
         /// <param name="operationId"></param>
@@ -880,7 +880,7 @@ namespace OASystem.API.OAMethodLib.QiYeWeChatAPI.AppNotice
             {
                 List<string> qwUserIdList = GetQiyeChatUserIdList(receivedUserIds);
 
-                string resMsg = string.Format(@" `机票费用录入操作通知`  
+                string resMsg = string.Format(@" `机票行程代码录入操作通知`  
 
 >团组:<font color='info'>{0}</font>