fgd пре 1 година
родитељ
комит
f9c79da5bc

+ 1 - 1
sd-business/src/main/java/com/sd/business/service/order/impl/OrderServiceImpl.java

@@ -1344,7 +1344,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, OrderInfo> implem
         OrderInfo updateOrderInfo = new OrderInfo();
         updateOrderInfo.setId(orderInfo.getId());
         updateOrderInfo.setDeliveryMaterialsFee(skuDeliveryMaterialsFee.multiply(quantity).setScale(2, RoundingMode.HALF_UP));
-        updateOrderInfo.setTotalAmount(totalAmount.subtract(oldDeliveryMaterialsFee).add(orderInfo.getDeliveryMaterialsFee()));
+        updateOrderInfo.setTotalAmount(totalAmount.subtract(oldDeliveryMaterialsFee).add(skuDeliveryMaterialsFee));
         this.updateById(updateOrderInfo);
         orderSkuService.updateBatchById(tempOrderSkuList);
         ObsFileUtil.editFile(dto.getOuterBoxSelfAdhesiveStickerFile(), dto.getId(), 1);