|
|
@@ -1711,75 +1711,75 @@ WHERE
|
|
|
|
|
|
#region 团组状态通知
|
|
|
|
|
|
- ///// <summary>
|
|
|
- ///// 测试
|
|
|
- ///// </summary>
|
|
|
- ///// <param name="dto"></param>
|
|
|
- ///// <returns></returns>
|
|
|
- //[HttpPost]
|
|
|
- //[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
- //public async Task<IActionResult> Test_QIYEWX(PostTourClientListDownloadFile dto)
|
|
|
- //{
|
|
|
- // //List<string> templist = new List<string>() { 234.ToString() };
|
|
|
- // //await AppNoticeLibrary.SendUserMsg_GroupStatus_AuditFee(14090, templist, QiyeWeChatEnum.TestChat);
|
|
|
+ // ///// <summary>
|
|
|
+ // ///// 测试
|
|
|
+ // ///// </summary>
|
|
|
+ // ///// <param name="dto"></param>
|
|
|
+ // ///// <returns></returns>
|
|
|
+ // [HttpPost]
|
|
|
+ // [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ // public async Task<IActionResult> Test_QIYEWX(PostTourClientListDownloadFile dto)
|
|
|
+ // {
|
|
|
+ // // //List<string> templist = new List<string>() { 234.ToString() };
|
|
|
+ // // //await AppNoticeLibrary.SendUserMsg_GroupStatus_AuditFee(14090, templist, QiyeWeChatEnum.TestChat);
|
|
|
|
|
|
- // //await AppNoticeLibrary.SendUserMsg_GroupShare_ToJob(dto.DiId); ;
|
|
|
+ // // //await AppNoticeLibrary.SendUserMsg_GroupShare_ToJob(dto.DiId); ;
|
|
|
|
|
|
|
|
|
- // //DeleReminderMessage.PostMessageByWebhook();
|
|
|
- // //GroupStatus_UserSimplelistView list = await _qiYeWeChatApiService.GroupStatus_GetUserList();
|
|
|
+ // // //DeleReminderMessage.PostMessageByWebhook();
|
|
|
+ // // //GroupStatus_UserSimplelistView list = await _qiYeWeChatApiService.GroupStatus_GetUserList();
|
|
|
|
|
|
- // //创建群聊
|
|
|
+ // // //创建群聊
|
|
|
|
|
|
- // //List<string> userList1 = new List<string>() { "Feint", "amy.zhu@pan-american-intl.com", "judy.zeng@pan-american-intl.com", "FuHongJin" };
|
|
|
- // //List<string> userList2 = new List<string>() { "Feint", "ZhaoYaQi", "LiaoWenYa" };
|
|
|
- // //List<string> userList3 = new List<string>() { "Feint", "amy.zhu@pan-american-intl.com", "judy.zeng@pan-american-intl.com", "FuHongJin", "ZhaoYaQi", "LiaoWenYa" };
|
|
|
+ // // //List<string> userList1 = new List<string>() { "Feint", "amy.zhu@pan-american-intl.com", "judy.zeng@pan-american-intl.com", "FuHongJin" };
|
|
|
+ // // //List<string> userList2 = new List<string>() { "Feint", "ZhaoYaQi", "LiaoWenYa" };
|
|
|
+ // List<string> userList3 = new List<string>() { "rongfeng.yuan", "zhaiyang" };
|
|
|
|
|
|
- // //GroupStatus_CreateChatView rst1 = await _qiYeWeChatApiService.GroupStatus_CreateChat("团组通知", "Feint", userList1, "CaiWuChat01");
|
|
|
- // //GroupStatus_CreateChatView rst2 = await _qiYeWeChatApiService.GroupStatus_CreateChat("OA通知-国交部", "Feint", userList2, "GuoJiaoLeader01");
|
|
|
- // //GroupStatus_CreateChatView rst3 = await _qiYeWeChatApiService.GroupStatus_CreateChat("OA通知-团组(公司客户)", "Feint", userList3, "CompanyCRMChat01");
|
|
|
+ // // //GroupStatus_CreateChatView rst1 = await _qiYeWeChatApiService.GroupStatus_CreateChat("团组通知", "Feint", userList1, "CaiWuChat01");
|
|
|
+ // // //GroupStatus_CreateChatView rst2 = await _qiYeWeChatApiService.GroupStatus_CreateChat("OA通知-国交部", "Feint", userList2, "GuoJiaoLeader01");
|
|
|
+ // GroupStatus_CreateChatView rst3 = await _qiYeWeChatApiService.GroupStatus_CreateChat("OA通知-机票预算", "rongfeng.yuan", userList3, "AirCostChat01");
|
|
|
|
|
|
- // //推送消息(模板)
|
|
|
+ // // //推送消息(模板)
|
|
|
|
|
|
- // //List<string> userList = new List<string>() { "Feint", "huaju.liu", "johnny.yang@pan-american-intl.com" };
|
|
|
- // //List<string> userList = new List<string>() { "Feint", "johnny.yang@pan-american-intl.com" };
|
|
|
- // //GroupStatus_CreateChatView rst1 = await _qiYeWeChatApiService.GroupStatus_CreateChat("团组费用提示", "Feint", userList, "GuoJiaoChat01");
|
|
|
+ // // //List<string> userList = new List<string>() { "Feint", "huaju.liu", "johnny.yang@pan-american-intl.com" };
|
|
|
+ // // //List<string> userList = new List<string>() { "Feint", "johnny.yang@pan-american-intl.com" };
|
|
|
+ // // GroupStatus_CreateChatView rst1 = await _qiYeWeChatApiService.GroupStatus_CreateChat("团组费用提示", "Feint", userList, "GuoJiaoChat01");
|
|
|
|
|
|
- // //团组出发
|
|
|
- // //AppNoticeLibrary.SendUserMsg_GroupStatus_Create(2358, userList);
|
|
|
+ // // //团组出发
|
|
|
+ // // //AppNoticeLibrary.SendUserMsg_GroupStatus_Create(2358, userList);
|
|
|
|
|
|
- // //费用审核
|
|
|
- // //AppNoticeLibrary.SendChatMsg_GroupStatus_ApplyFee(dto.DiId, QiyeWeChatEnum.TestChat);
|
|
|
+ // // //费用审核
|
|
|
+ // // //AppNoticeLibrary.SendChatMsg_GroupStatus_ApplyFee(dto.DiId, QiyeWeChatEnum.TestChat);
|
|
|
|
|
|
- // //费用审核结果通知(通过情况下发送财务群)
|
|
|
- // //List<string> userList = new List<string>() { "234" };
|
|
|
- // //AppNoticeLibrary.SendUserMsg_GroupStatus_AuditFee(dto.DiId, userList, QiyeWeChatEnum.CaiWuChat02);
|
|
|
+ // // //费用审核结果通知(通过情况下发送财务群)
|
|
|
+ // // //List<string> userList = new List<string>() { "234" };
|
|
|
+ // // //AppNoticeLibrary.SendUserMsg_GroupStatus_AuditFee(dto.DiId, userList, QiyeWeChatEnum.CaiWuChat02);
|
|
|
|
|
|
- // //4、财务付款时:(1)对应版块人员【单独发,状态为已付款才发】
|
|
|
- // //AppNoticeLibrary.SendUserMsg_GroupStatus_PayResult(dto.DiId, userList);
|
|
|
+ // // //4、财务付款时:(1)对应版块人员【单独发,状态为已付款才发】
|
|
|
+ // // //AppNoticeLibrary.SendUserMsg_GroupStatus_PayResult(dto.DiId, userList);
|
|
|
|
|
|
- // //团组提醒财务群
|
|
|
- // //DateTime dtNow = DateTime.Now;
|
|
|
- // //List<Grp_DelegationInfo> listSource = _usersRep.Query<Grp_DelegationInfo>(s => s.IsDel == 0 && s.VisitStartDate >= dtNow).Take(3).ToList();
|
|
|
- // //List<Grp_DelegationInfo> listAdd7day = _usersRep.Query<Grp_DelegationInfo>(s => s.IsDel == 0 && s.VisitStartDate >= dtNow).Take(3).ToList();
|
|
|
- // //List<Grp_DelegationInfo> listAdd3day = new List<Grp_DelegationInfo>() { };
|
|
|
+ // // //团组提醒财务群
|
|
|
+ // // //DateTime dtNow = DateTime.Now;
|
|
|
+ // // //List<Grp_DelegationInfo> listSource = _usersRep.Query<Grp_DelegationInfo>(s => s.IsDel == 0 && s.VisitStartDate >= dtNow).Take(3).ToList();
|
|
|
+ // // //List<Grp_DelegationInfo> listAdd7day = _usersRep.Query<Grp_DelegationInfo>(s => s.IsDel == 0 && s.VisitStartDate >= dtNow).Take(3).ToList();
|
|
|
+ // // //List<Grp_DelegationInfo> listAdd3day = new List<Grp_DelegationInfo>() { };
|
|
|
|
|
|
- // //AppNoticeLibrary.SendChatMsg_GroupRemindersToCaiwu(listAdd7day, listAdd3day, QiyeWeChatEnum.TestChat);
|
|
|
+ // //机票预算群通知
|
|
|
+ // await AppNoticeLibrary.SendChatMsg_AirCostChat(dto.DiId, QiyeWeChatEnum.AirCostChat01);
|
|
|
|
|
|
+ // // //日付申请提醒财务群
|
|
|
+ // // //AppNoticeLibrary.DailyPayReminders_Create_ToCaiwuChat(dto.DiId, QiyeWeChatEnum.CaiWuChat02);
|
|
|
+ // // //日付申请结果推送用户、成功通知财务群
|
|
|
+ // // //AppNoticeLibrary.DailyPayReminder_Audit_ToUser(dto.DiId, userList, QiyeWeChatEnum.TestChat);
|
|
|
+ // // //AppNoticeLibrary.DailyPayReminder_Pay_ToUser(dto.DiId, userList);
|
|
|
|
|
|
- // //日付申请提醒财务群
|
|
|
- // //AppNoticeLibrary.DailyPayReminders_Create_ToCaiwuChat(dto.DiId, QiyeWeChatEnum.CaiWuChat02);
|
|
|
- // //日付申请结果推送用户、成功通知财务群
|
|
|
- // //AppNoticeLibrary.DailyPayReminder_Audit_ToUser(dto.DiId, userList, QiyeWeChatEnum.TestChat);
|
|
|
- // //AppNoticeLibrary.DailyPayReminder_Pay_ToUser(dto.DiId, userList);
|
|
|
+ // // //string q = "";
|
|
|
|
|
|
- // //string q = "";
|
|
|
+ // // DeleReminderMessage.PostMessageByWebhook_CRMStatistics();
|
|
|
|
|
|
- // DeleReminderMessage.PostMessageByWebhook_CRMStatistics();
|
|
|
|
|
|
-
|
|
|
- // return Ok(JsonView(true, "操作成功!"));
|
|
|
- //}
|
|
|
+ // return Ok(JsonView(true, "操作成功!"));
|
|
|
+ // }
|
|
|
|
|
|
#endregion
|
|
|
|