IFinance_OrderCostRepository.cs 1018 B

123456789101112131415161718192021222324252627
  1. using System.Threading.Tasks;
  2. using XYY.Core.Standard.Data.Infrastructure;
  3. using XYY.Model.Standard;
  4. using XYY.Model.Standard.Finance;
  5. namespace XYY.Data.Standard.Finance
  6. {
  7. public interface IFinance_OrderCostRepository : IBaseRepository<Finance_OrderCost>
  8. {
  9. Task UpdateOrderCost(string ladingBillNumber, decimal totalFee, FinanceIncidentalTypeEnum feeType, string Curreny);
  10. }
  11. public class Finance_OrderCostRepository : BaseRepository<Finance_OrderCost>, IFinance_OrderCostRepository
  12. {
  13. public Finance_OrderCostRepository(IUnitOfWork unitOfWork) : base(unitOfWork)
  14. {
  15. }
  16. public async Task UpdateOrderCost(string ladingBillNumber, decimal totalFee, FinanceIncidentalTypeEnum feeType, string curreny)
  17. {
  18. int type = (int)feeType;
  19. await ExecuteStoredProcedureAsync("SP_UpdateOrderCost",
  20. new { LadingBillNumber = ladingBillNumber, TotalFee = totalFee, FeeType = type, Curreny = curreny }, 120);
  21. }
  22. }
  23. }