|  | @@ -1,4 +1,5 @@
 | 
												
													
														
															|  | -using NPOI.SS.Formula.Functions;
 |  | 
 | 
												
													
														
															|  | 
 |  | +using EyeSoft.Runtime.InteropServices;
 | 
												
													
														
															|  | 
 |  | +using NPOI.SS.Formula.Functions;
 | 
												
													
														
															|  |  using OASystem.Domain.Entities.Financial;
 |  |  using OASystem.Domain.Entities.Financial;
 | 
												
													
														
															|  |  using OASystem.Domain.Entities.Groups;
 |  |  using OASystem.Domain.Entities.Groups;
 | 
												
													
														
															|  |  using OASystem.Domain.ViewModels.Groups;
 |  |  using OASystem.Domain.ViewModels.Groups;
 | 
												
											
												
													
														
															|  | @@ -524,6 +525,7 @@ namespace OASystem.API.OAMethodLib.QiYeWeChatAPI.AppNotice
 | 
												
													
														
															|  |          /// <returns></returns>
 |  |          /// <returns></returns>
 | 
												
													
														
															|  |          public static async Task<bool> SendUserMsg_GroupStatus_PayResult(int Grp_CreditCardPaymentId, List<string> userId)
 |  |          public static async Task<bool> SendUserMsg_GroupStatus_PayResult(int Grp_CreditCardPaymentId, List<string> userId)
 | 
												
													
														
															|  |          {
 |  |          {
 | 
												
													
														
															|  | 
 |  | +            //, QiyeWeChatEnum qiyeWeChat
 | 
												
													
														
															|  |              Grp_CreditCardPayment ccp = _grpDeleRep.Query<Grp_CreditCardPayment>(s => s.Id == Grp_CreditCardPaymentId).First();
 |  |              Grp_CreditCardPayment ccp = _grpDeleRep.Query<Grp_CreditCardPayment>(s => s.Id == Grp_CreditCardPaymentId).First();
 | 
												
													
														
															|  |              Grp_DelegationInfo group = _grpDeleRep.Query<Grp_DelegationInfo>(s => s.Id == ccp.DIId).First();
 |  |              Grp_DelegationInfo group = _grpDeleRep.Query<Grp_DelegationInfo>(s => s.Id == ccp.DIId).First();
 | 
												
													
														
															|  |  
 |  |  
 | 
												
											
												
													
														
															|  | @@ -788,18 +790,16 @@ namespace OASystem.API.OAMethodLib.QiYeWeChatAPI.AppNotice
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |          #region 三公费用更改通知
 |  |          #region 三公费用更改通知
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -
 |  | 
 | 
												
													
														
															|  |          /// <summary>
 |  |          /// <summary>
 | 
												
													
														
															|  |          /// 三公费用更改通知发送总经理(21)
 |  |          /// 三公费用更改通知发送总经理(21)
 | 
												
													
														
															|  |          /// </summary>
 |  |          /// </summary>
 | 
												
													
														
															|  |          /// <param name="sign"></param>
 |  |          /// <param name="sign"></param>
 | 
												
													
														
															|  |          /// <returns></returns>
 |  |          /// <returns></returns>
 | 
												
													
														
															|  | -        public static async Task<bool> SendUserMsg_GroupShare_ToGM(int diId,string receivedUserId, int updateUserId, string url)
 |  | 
 | 
												
													
														
															|  | 
 |  | +        public static async Task<bool> SendUserMsg_GroupShare_ToGM(int diId,List<string> receivedUserIds, int updateUserId, string url)
 | 
												
													
														
															|  |          {
 |  |          {
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |              Grp_DelegationInfo groupInfo = _grpDeleRep.Query<Grp_DelegationInfo>(s => s.Id == diId).First();
 |  |              Grp_DelegationInfo groupInfo = _grpDeleRep.Query<Grp_DelegationInfo>(s => s.Id == diId).First();
 | 
												
													
														
															|  | -            List<string> qwUserIdList =new List<string>() { receivedUserId };
 |  | 
 | 
												
													
														
															|  | -
 |  | 
 | 
												
													
														
															|  | 
 |  | +            
 | 
												
													
														
															|  |              GroupShare_ToGMModel info = new GroupShare_ToGMModel()
 |  |              GroupShare_ToGMModel info = new GroupShare_ToGMModel()
 | 
												
													
														
															|  |              {
 |  |              {
 | 
												
													
														
															|  |                  RefreshDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm"),
 |  |                  RefreshDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm"),
 | 
												
											
												
													
														
															|  | @@ -808,8 +808,9 @@ namespace OASystem.API.OAMethodLib.QiYeWeChatAPI.AppNotice
 | 
												
													
														
															|  |                  Url = url
 |  |                  Url = url
 | 
												
													
														
															|  |              };
 |  |              };
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -            if (qwUserIdList.Count > 0)
 |  | 
 | 
												
													
														
															|  | 
 |  | +            if (receivedUserIds.Count > 0)
 | 
												
													
														
															|  |              {
 |  |              {
 | 
												
													
														
															|  | 
 |  | +                List<string> qwUserIdList = GetQiyeChatUserIdList(receivedUserIds);
 | 
												
													
														
															|  |                  ResponseBase result = await _qiYeWeChatApiService.GroupStatus_SendMessage_ToUser_Markdown(qwUserIdList, MarkdownLib.GroupShare_ToGM(info));
 |  |                  ResponseBase result = await _qiYeWeChatApiService.GroupStatus_SendMessage_ToUser_Markdown(qwUserIdList, MarkdownLib.GroupShare_ToGM(info));
 | 
												
													
														
															|  |                  if (result.errcode != 0)
 |  |                  if (result.errcode != 0)
 | 
												
													
														
															|  |                  {
 |  |                  {
 | 
												
											
												
													
														
															|  | @@ -821,6 +822,39 @@ namespace OASystem.API.OAMethodLib.QiYeWeChatAPI.AppNotice
 | 
												
													
														
															|  |              return true;
 |  |              return true;
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | 
 |  | +        /// <summary>
 | 
												
													
														
															|  | 
 |  | +        /// 三公费用确认通知发送财务部人员
 | 
												
													
														
															|  | 
 |  | +        /// </summary>
 | 
												
													
														
															|  | 
 |  | +        /// <param name="sign"></param>
 | 
												
													
														
															|  | 
 |  | +        /// <returns></returns>
 | 
												
													
														
															|  | 
 |  | +        public static async Task<bool> SendUserMsg_GroupShare_ToFinance(int diId)
 | 
												
													
														
															|  | 
 |  | +        {
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  | 
 |  | +            Grp_DelegationInfo groupInfo = _grpDeleRep.Query<Grp_DelegationInfo>(s => s.Id == diId).First();
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  | 
 |  | +            GroupShare_ToUserModel info = new GroupShare_ToUserModel()
 | 
												
													
														
															|  | 
 |  | +            {
 | 
												
													
														
															|  | 
 |  | +                RefreshDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm"),
 | 
												
													
														
															|  | 
 |  | +                TeamName = groupInfo.TeamName
 | 
												
													
														
															|  | 
 |  | +            };
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  | 
 |  | +            List<string> receivedUserIds = _grpDeleRep.Query<Sys_Users>(s => s.IsDel == 0 && s.DepId == 3).Select(x => x.Id.ToString()).ToList();
 | 
												
													
														
															|  | 
 |  | +            receivedUserIds = new List<string>() { "208","4", "233" };
 | 
												
													
														
															|  | 
 |  | +            if (receivedUserIds.Count > 0)
 | 
												
													
														
															|  | 
 |  | +            {
 | 
												
													
														
															|  | 
 |  | +                List<string> qwUserIdList = GetQiyeChatUserIdList(receivedUserIds);
 | 
												
													
														
															|  | 
 |  | +                ResponseBase result = await _qiYeWeChatApiService.GroupStatus_SendMessage_ToUser_Markdown(qwUserIdList, MarkdownLib.GroupShare_ToFinance(info));
 | 
												
													
														
															|  | 
 |  | +                if (result.errcode != 0)
 | 
												
													
														
															|  | 
 |  | +                {
 | 
												
													
														
															|  | 
 |  | +                    //抄送日志 
 | 
												
													
														
															|  | 
 |  | +                    return false;
 | 
												
													
														
															|  | 
 |  | +                }
 | 
												
													
														
															|  | 
 |  | +            }
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  | 
 |  | +            return true;
 | 
												
													
														
															|  | 
 |  | +        }
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  |          #endregion
 |  |          #endregion
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |  
 |  |  
 |