FinanceFeeCountController.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using Microsoft.AspNetCore.Http;
  2. using Microsoft.AspNetCore.Mvc;
  3. using System.Threading.Tasks;
  4. using System;
  5. using XYY.Core.Standard.Mvc;
  6. using XYY.Service.Standard.Finance;
  7. using XYY.Model.Standard.FeeCount;
  8. namespace XYY.Api.Finance.Controllers
  9. {
  10. /// <summary>
  11. /// 财务费用计算
  12. /// </summary>
  13. [Route("api/[controller]/[action]")]
  14. [ApiController]
  15. public class FinanceFeeCountController : ApiControllerBase
  16. {
  17. IFinanceFeeCountService _financeFeeCountService;
  18. public FinanceFeeCountController(IFinanceFeeCountService financeFeeCountService)
  19. {
  20. _financeFeeCountService = financeFeeCountService;
  21. }
  22. /// <summary>
  23. ///
  24. /// </summary>
  25. /// <param name="search"></param>
  26. /// <returns></returns>
  27. [HttpPost]
  28. public async Task<IActionResult> GetOrderFee(FinanceOrderFeeParam param)
  29. {
  30. try
  31. {
  32. string feeQueryParam = await _financeFeeCountService.GetFeesQueryParamByOrder(param);
  33. return Ok();
  34. } catch (Exception e)
  35. {
  36. return Error(e.Message);
  37. }
  38. }
  39. }
  40. }