售后菜单、是否退运费修改

This commit is contained in:
taozi
2023-04-29 15:49:24 +08:00
parent 0e70360afd
commit b8fff738a2
4 changed files with 14 additions and 2 deletions

View File

@ -89,7 +89,8 @@ public class StoreAfterSalesServiceImpl extends BaseServiceImpl<StoreAfterSalesM
BigDecimal commodityDiscountAmount = NumberUtil.mul(NumberUtil.div(totalAmountOfGoods, NumberUtil.sub(yxStoreOrder.getTotalPrice(), yxStoreOrder.getPayPostage())), yxStoreOrder.getCouponPrice());
//商品优惠后总金额
totalPrice = NumberUtil.add(totalPrice, NumberUtil.sub(totalAmountOfGoods, commodityDiscountAmount));
// todo 根据自己的业务逻辑修改,是否退运费,默认退运费
totalPrice = NumberUtil.add(totalPrice, yxStoreOrder.getPayPostage());
yxStoreOrderCartInfo.setIsAfterSales(0);
storeOrderCartInfoMapper.updateById(yxStoreOrderCartInfo);