修正订单费用详情计算
This commit is contained in:
parent
5c0dc11d5d
commit
4337f212b3
@ -617,7 +617,7 @@ public class WxPayServiceImpl implements WxPayService {
|
||||
//1-骑行时长费 2-运营区调度费用 3-停车区调度费用 4-高峰时段出行费用 5-高峰日出行费用 6-起步费用
|
||||
switch (detailDto.getItemType()) {
|
||||
case 1, 4, 5 -> orderDto.setDurationCost(orderDto.getDurationCost() + detailDto.getUnitPrice());
|
||||
case 2 -> orderDto.setDispatchFeeOutOperateArea(orderDto.getParkingAreaOutDispatchFee() + detailDto.getUnitPrice());
|
||||
case 2 -> orderDto.setDispatchFeeOutOperateArea(orderDto.getDispatchFeeBanArea() + detailDto.getUnitPrice());
|
||||
case 3 -> orderDto.setParkingAreaOutDispatchFee(orderDto.getParkingAreaOutDispatchFee() + detailDto.getUnitPrice());
|
||||
case 6 -> orderDto.setStartupCost(orderDto.getStartupCost() + detailDto.getUnitPrice());
|
||||
}
|
||||
@ -735,7 +735,7 @@ public class WxPayServiceImpl implements WxPayService {
|
||||
//1-骑行时长费 2-运营区调度费用 3-停车区调度费用 4-高峰时段出行费用 5-高峰日出行费用 6-起步费用
|
||||
switch (detailDto.getItemType()) {
|
||||
case 1, 4, 5 -> detailInfo.setDurationCost(detailInfo.getDurationCost() + detailDto.getUnitPrice());
|
||||
case 2 -> detailInfo.setDispatchFeeOutOperateArea(detailInfo.getParkingAreaOutDispatchFee() + detailDto.getUnitPrice());
|
||||
case 2 -> detailInfo.setDispatchFeeOutOperateArea(detailInfo.getDispatchFeeBanArea() + detailDto.getUnitPrice());
|
||||
case 3 -> detailInfo.setParkingAreaOutDispatchFee(detailInfo.getParkingAreaOutDispatchFee() + detailDto.getUnitPrice());
|
||||
case 6 -> detailInfo.setStartupCost(detailInfo.getStartupCost() + detailDto.getUnitPrice());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user