|
|
@@ -122,9 +122,9 @@ public class OrderCloseEventHandler implements AwoaraEventHandler<OrderInfoObjec
|
|
|
// 平台手续费10%
|
|
|
var platformAmount = (int) (washOrder.getAmount() * 0.1);
|
|
|
// 解冻金额
|
|
|
- var amount = (int) (washOrder.getAmount() * 0.3 - platformAmount);
|
|
|
+ var amount = (int) (washOrder.getAmount() * 0.3);
|
|
|
stationAccountService.lambdaUpdate()
|
|
|
- .setSql("frozen_amount = frozen_amount - {0}", amount)
|
|
|
+ .setSql("balance = balance + {0}, frozen_amount = frozen_amount - {1}", amount - platformAmount, amount)
|
|
|
.eq(StationAccount::getStationId, washOrder.getStationId())
|
|
|
.update();
|
|
|
|
|
|
@@ -132,6 +132,7 @@ public class OrderCloseEventHandler implements AwoaraEventHandler<OrderInfoObjec
|
|
|
stationAccountService.lambdaUpdate()
|
|
|
.setSql("balance = balance + {0}", platformAmount)
|
|
|
.eq(StationAccount::getId, StationAccount.PLATFORM_ACCOUNT_ID)
|
|
|
+ .eq(StationAccount::getStationId, StationAccount.PLATFORM_STATION_ID)
|
|
|
.update();
|
|
|
|
|
|
// 技术服务费
|