From 2accac7df60ce37d53e1ea85fafd4a806212fc58 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期一, 11 八月 2025 09:48:09 +0800 Subject: [PATCH] 临时修改国家电网折扣为95折 --- LifePayment/LifePayment.Application/LifePay/LifePayService.cs | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/LifePayment/LifePayment.Application/LifePay/LifePayService.cs b/LifePayment/LifePayment.Application/LifePay/LifePayService.cs index ddfd419..6a6bbf7 100644 --- a/LifePayment/LifePayment.Application/LifePay/LifePayService.cs +++ b/LifePayment/LifePayment.Application/LifePay/LifePayService.cs @@ -1145,6 +1145,12 @@ var amount = CalculateAmount(input.ProductData.ParValue, rate); var platformRate = await _lifePayRateRepository.FirstOrDefaultAsync(r => r.RateType == LifePayRateTypeEnum.渚涘簲鍟嗘姌鎵d环); + //TODO 鐩稿叧鍗曢」鎶樻墸璋冭妭鍔熻兘鏈笂绾� 鐩墠閽堝鎯呭喌涓存椂鍐欐 + if (input.ProductData.ElectricType == "guowang") + { + platformRate.Rate = 95; + } + var orderInput = new CreateLifePayOrderInput { OrderNo = channle.ChannlesNum + CreateOrderNo(), @@ -1609,7 +1615,7 @@ await _lifePayOrderService.CreatLifePayConsumption(acoolyStatus, order.OrderNo, order.ACOOLYOrderNo, order.PlatformDeductionAmount ?? 0, order.ChannelId, order.CreationTime, order.FinishTime, order.ChannleRate, parValue, actualParValue); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); _logger.LogInformation("浜嬪姟瀹屾垚"); } -- Gitblit v1.9.1