|
@@ -41,6 +41,7 @@ namespace OASystem.API.OAMethodLib.QiYeWeChatAPI.AppNotice
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
+
|
|
|
#region 确认出团
|
|
|
|
|
|
/// <summary>
|
|
@@ -120,7 +121,7 @@ namespace OASystem.API.OAMethodLib.QiYeWeChatAPI.AppNotice
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
-
|
|
|
+
|
|
|
#region 团组费用审核
|
|
|
|
|
|
|
|
@@ -788,6 +789,7 @@ namespace OASystem.API.OAMethodLib.QiYeWeChatAPI.AppNotice
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
+ #region 费用保存发送消息
|
|
|
#region 三公费用更改通知
|
|
|
|
|
|
/// <summary>
|
|
@@ -795,11 +797,11 @@ namespace OASystem.API.OAMethodLib.QiYeWeChatAPI.AppNotice
|
|
|
/// </summary>
|
|
|
/// <param name="sign"></param>
|
|
|
/// <returns></returns>
|
|
|
- public static async Task<bool> SendUserMsg_GroupShare_ToGM(int diId,List<string> receivedUserIds, 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();
|
|
|
-
|
|
|
+
|
|
|
GroupShare_ToGMModel info = new GroupShare_ToGMModel()
|
|
|
{
|
|
|
RefreshDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm"),
|
|
@@ -829,7 +831,6 @@ namespace OASystem.API.OAMethodLib.QiYeWeChatAPI.AppNotice
|
|
|
/// <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()
|
|
@@ -839,7 +840,10 @@ namespace OASystem.API.OAMethodLib.QiYeWeChatAPI.AppNotice
|
|
|
};
|
|
|
|
|
|
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" };
|
|
|
+ var defaultUserIds = new List<string>() { "208", "233" };
|
|
|
+ receivedUserIds.AddRange(defaultUserIds);
|
|
|
+ if (receivedUserIds.Contains("150")) receivedUserIds.Remove("150");
|
|
|
+
|
|
|
if (receivedUserIds.Count > 0)
|
|
|
{
|
|
|
List<string> qwUserIdList = GetQiyeChatUserIdList(receivedUserIds);
|
|
@@ -854,10 +858,54 @@ namespace OASystem.API.OAMethodLib.QiYeWeChatAPI.AppNotice
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 机票费用录入确认通知发送国交经理、主管、王鸽
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="diId"></param>
|
|
|
+ /// <param name="operationId"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ public static async Task<bool> SendUserMsg_GroupShare_ToDP(int diId,int operationId)
|
|
|
+ {
|
|
|
+ Grp_DelegationInfo groupInfo = _grpDeleRep.Query<Grp_DelegationInfo>(s => s.Id == diId).First();
|
|
|
+
|
|
|
+ var operationName = _grpDeleRep.Query<Sys_Users>(s => s.IsDel == 0 && s.Id == operationId).First()?.CnName ?? "Unknown";
|
|
|
+ var defaultJobPostIds = new List<int>() { 22, 32 };
|
|
|
+ List<string> receivedUserIds = _grpDeleRep.Query<Sys_Users>(s => s.IsDel == 0 && s.DepId == 7 && defaultJobPostIds.Contains(s.JobPostId)).Select(x => x.Id.ToString()).ToList();
|
|
|
+ var defaultUserIds = new List<string>() { "208", "233" };
|
|
|
+ receivedUserIds.AddRange(defaultUserIds);
|
|
|
+
|
|
|
+ if (receivedUserIds.Count > 0)
|
|
|
+ {
|
|
|
+ List<string> qwUserIdList = GetQiyeChatUserIdList(receivedUserIds);
|
|
|
+
|
|
|
+ string resMsg = string.Format(@" `机票费用录入操作通知`
|
|
|
+
|
|
|
+>团组:<font color='info'>{0}</font>
|
|
|
+
|
|
|
+>操作人员:<font color='comment'>{1}</font>
|
|
|
+>操作时间:<font color='comment'>{2}</font>
|
|
|
+
|
|
|
+[详细信息请前往OA系统查看](http://oa.pan-american-intl.com:4399/) ", groupInfo.TeamName, operationName, DateTime.Now.ToString("yyyy-MM-dd HH:mm"));
|
|
|
+
|
|
|
+
|
|
|
+ ResponseBase result = await _qiYeWeChatApiService.GroupStatus_SendMessage_ToUser_Markdown(qwUserIdList, resMsg);
|
|
|
+ if (result.errcode != 0)
|
|
|
+ {
|
|
|
+ //抄送日志
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
+
|
|
|
#region 成本通知
|
|
|
|
|
|
/// <summary>
|