|
@@ -2940,7 +2940,7 @@ namespace OASystem.API.Controllers
|
|
|
return Ok(JsonView(false, "程序错误!"));
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 团组增减款项操作(Status:1.新增,2.修改)
|
|
|
/// </summary>
|
|
@@ -2950,34 +2950,28 @@ namespace OASystem.API.Controllers
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> OpDecreasePayments(DecreasePaymentsOpDto dto)
|
|
|
{
|
|
|
- try
|
|
|
- {
|
|
|
- Result groupData = await _decreasePaymentsRep.OpDecreasePayments(dto);
|
|
|
- if (groupData.Code != 0)
|
|
|
- {
|
|
|
- return Ok(JsonView(false, groupData.Msg));
|
|
|
- }
|
|
|
|
|
|
- #region 应用推送
|
|
|
- try
|
|
|
- {
|
|
|
- int ccpId = groupData.Data.GetType().GetProperty("ccpId").GetValue(groupData.Data, null);
|
|
|
- int sign = groupData.Data.GetType().GetProperty("sign").GetValue(groupData.Data, null);
|
|
|
+ Result groupData = await _decreasePaymentsRep.OpDecreasePayments(dto);
|
|
|
+ if (groupData.Code != 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, groupData.Msg));
|
|
|
+ }
|
|
|
|
|
|
- await AppNoticeLibrary.SendChatMsg_GroupStatus_ApplyFee(ccpId, sign, QiyeWeChatEnum.GuoJiaoLeaderChat);
|
|
|
- }
|
|
|
- catch (Exception ex)
|
|
|
- {
|
|
|
- }
|
|
|
- #endregion
|
|
|
+ #region 应用推送
|
|
|
+ try
|
|
|
+ {
|
|
|
+ int ccpId = groupData.Data.GetType().GetProperty("ccpId").GetValue(groupData.Data, null);
|
|
|
+ int sign = groupData.Data.GetType().GetProperty("sign").GetValue(groupData.Data, null);
|
|
|
|
|
|
- return Ok(JsonView(true, groupData.Msg, groupData.Data));
|
|
|
+ await AppNoticeLibrary.SendChatMsg_GroupStatus_ApplyFee(ccpId, sign, QiyeWeChatEnum.GuoJiaoLeaderChat);
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- return Ok(JsonView(false, "程序错误!"));
|
|
|
- throw;
|
|
|
}
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ return Ok(JsonView(true, groupData.Msg, groupData.Data));
|
|
|
+
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 团组增减款项操作 删除
|