订单可能没有订单类型问题,兼容之前代码
This commit is contained in:
parent
644de06172
commit
cd7fc4d7ac
@ -93,7 +93,8 @@ public class StoreFlowServiceImpl extends ServiceImpl<StoreFlowMapper, StoreFlow
|
|||||||
storeFlow.setDistributionRebate(item.getPriceDetailDTO().getDistributionCommission());
|
storeFlow.setDistributionRebate(item.getPriceDetailDTO().getDistributionCommission());
|
||||||
storeFlow.setBillPrice(item.getPriceDetailDTO().getBillPrice());
|
storeFlow.setBillPrice(item.getPriceDetailDTO().getBillPrice());
|
||||||
//兼容为空,以及普通订单操作
|
//兼容为空,以及普通订单操作
|
||||||
if (StringUtils.isNotEmpty(orderPromotionType) || orderPromotionType.equals(OrderPromotionTypeEnum.NORMAL.name())) {
|
if (StringUtils.isNotEmpty(orderPromotionType)) {
|
||||||
|
if (orderPromotionType.equals(OrderPromotionTypeEnum.NORMAL.name())) {
|
||||||
//普通订单操作
|
//普通订单操作
|
||||||
}
|
}
|
||||||
//如果为砍价活动,填写砍价结算价
|
//如果为砍价活动,填写砍价结算价
|
||||||
@ -104,7 +105,7 @@ public class StoreFlowServiceImpl extends ServiceImpl<StoreFlowMapper, StoreFlow
|
|||||||
else if (orderPromotionType.equals(OrderPromotionTypeEnum.POINTS.name())) {
|
else if (orderPromotionType.equals(OrderPromotionTypeEnum.POINTS.name())) {
|
||||||
storeFlow.setPointSettlementPrice(item.getPriceDetailDTO().getSettlementPrice());
|
storeFlow.setPointSettlementPrice(item.getPriceDetailDTO().getSettlementPrice());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//添加支付方式
|
//添加支付方式
|
||||||
storeFlow.setPaymentName(order.getPaymentMethod());
|
storeFlow.setPaymentName(order.getPaymentMethod());
|
||||||
//添加第三方支付流水号
|
//添加第三方支付流水号
|
||||||
|
Loading…
x
Reference in New Issue
Block a user