|
@@ -28,11 +28,14 @@ namespace OASystem.API.Controllers
|
|
private readonly TeamRateRepository _teamRateRep; //团组汇率仓库
|
|
private readonly TeamRateRepository _teamRateRep; //团组汇率仓库
|
|
private readonly ForeignReceivablesRepository _ForForeignReceivablesRep; //对外收款账单仓库
|
|
private readonly ForeignReceivablesRepository _ForForeignReceivablesRep; //对外收款账单仓库
|
|
private readonly ProceedsReceivedRepository _proceedsReceivedRep; //已收款项仓库
|
|
private readonly ProceedsReceivedRepository _proceedsReceivedRep; //已收款项仓库
|
|
|
|
+ private readonly PaymentRefundAndOtherMoneyRepository _paymentRefundAndOtherMoneyRep; //收款退还与其他款项 仓库
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 初始化
|
|
/// 初始化
|
|
/// </summary>
|
|
/// </summary>
|
|
- public FinancialController(IMapper mapper, IConfiguration configuration, DailyFeePaymentRepository daiRep, SqlSugarClient sqlSugar, SetDataTypeRepository setDataTypeRep, TeamRateRepository teamRateRep, ForeignReceivablesRepository ForForeignReceivablesRep, ProceedsReceivedRepository proceedsReceivedRep)
|
|
|
|
|
|
+ public FinancialController(IMapper mapper, IConfiguration configuration, DailyFeePaymentRepository daiRep, SqlSugarClient sqlSugar, SetDataTypeRepository setDataTypeRep,
|
|
|
|
+ TeamRateRepository teamRateRep, ForeignReceivablesRepository ForForeignReceivablesRep, ProceedsReceivedRepository proceedsReceivedRep,
|
|
|
|
+ PaymentRefundAndOtherMoneyRepository paymentRefundAndOtherMoneyRep)
|
|
{
|
|
{
|
|
_mapper = mapper;
|
|
_mapper = mapper;
|
|
_config = configuration;
|
|
_config = configuration;
|
|
@@ -42,6 +45,7 @@ namespace OASystem.API.Controllers
|
|
_teamRateRep = teamRateRep;
|
|
_teamRateRep = teamRateRep;
|
|
_ForForeignReceivablesRep = ForForeignReceivablesRep;
|
|
_ForForeignReceivablesRep = ForForeignReceivablesRep;
|
|
_proceedsReceivedRep = proceedsReceivedRep;
|
|
_proceedsReceivedRep = proceedsReceivedRep;
|
|
|
|
+ _paymentRefundAndOtherMoneyRep = paymentRefundAndOtherMoneyRep;
|
|
}
|
|
}
|
|
|
|
|
|
#region 日付申请
|
|
#region 日付申请
|
|
@@ -875,6 +879,82 @@ namespace OASystem.API.Controllers
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ #endregion
|
|
|
|
+
|
|
|
|
+ #region 收款退还与其他款项
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 收款退还与其他款项
|
|
|
|
+ /// 查询 根据团组Id
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <param name="dto"></param>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [HttpPost]
|
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
|
+ public async Task<IActionResult> PostPaymentRefundAndOtherMoneyItemByDiId(PaymentRefundAndOtherMoneyItemByDiIdDto dto)
|
|
|
|
+ {
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ if (dto == null)
|
|
|
|
+ {
|
|
|
|
+ return Ok(JsonView(false, "参数不能为空!"));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ Result _result = await _paymentRefundAndOtherMoneyRep.PostItemByDiId(dto.DiId);
|
|
|
|
+
|
|
|
|
+ if (dto.PortType == 1 || dto.PortType == 2 || dto.PortType == 3) //1 Web 2 Android 3 Ios
|
|
|
|
+ {
|
|
|
|
+ if (_result.Code != 0)
|
|
|
|
+ {
|
|
|
|
+ return Ok(JsonView(false, _result.Msg));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ return Ok(JsonView(false, "请输入正确的端口号! 1 Web 2 Android 3 Ios;"));
|
|
|
|
+ }
|
|
|
|
+ return Ok(JsonView(true, "操作成功!", _result.Data));
|
|
|
|
+ }
|
|
|
|
+ catch (Exception ex)
|
|
|
|
+ {
|
|
|
|
+ return Ok(JsonView(false, ex.Message));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 收款退还与其他款项
|
|
|
|
+ /// 查询 根据团组Id
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <param name="dto"></param>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [HttpPost]
|
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
|
+ public async Task<IActionResult> PostPaymentRefundAndOtherMoneyDel(PaymentRefundAndOtherMoneyDelDto dto)
|
|
|
|
+ {
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ if (dto == null)
|
|
|
|
+ {
|
|
|
|
+ return Ok(JsonView(false, "参数不能为空!"));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ Result _result = await _paymentRefundAndOtherMoneyRep._Del(dto);
|
|
|
|
+
|
|
|
|
+ if (_result.Code != 0)
|
|
|
|
+ {
|
|
|
|
+ return Ok(JsonView(false, _result.Msg));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return Ok(JsonView(true, "操作成功!"));
|
|
|
|
+ }
|
|
|
|
+ catch (Exception ex)
|
|
|
|
+ {
|
|
|
|
+ return Ok(JsonView(false, ex.Message));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
#endregion
|
|
#endregion
|
|
}
|
|
}
|
|
}
|
|
}
|