Commit c42d07c88abd6530c8017145ead256a148fb56e4

Authored by fengliang
1 parent 29cf80b4

update:去除手续费计算

etrade-order/src/main/java/com/diligrp/etrade/order/service/impl/OrderGoodsServiceImpl.java
... ... @@ -81,8 +81,8 @@ public class OrderGoodsServiceImpl implements OrderGoodsService {
81 81 orderGood.setProductPrice(productDto.getProductPrice().multiply(NumberTransform.ONE_HUNDERD).longValue());
82 82 orderGood.setProductWeight(productDto.getProductWeight().multiply(NumberTransform.ONE_HUNDERD).longValue());
83 83 orderGood.setProductName(productDto.getProductName());
84   - orderGood.setProductPieces(productDto.getProductWeight()!=null?productDto.getProductWeight().multiply(NumberTransform.ONE_HUNDERD).longValue():null);
85   - orderGood.setProductPiecePrice(productDto.getProductPrice()!=null?productDto.getProductPrice().multiply(NumberTransform.ONE_HUNDERD).longValue():null);
  84 + orderGood.setProductPieces(null);
  85 + orderGood.setProductPiecePrice(null);
86 86 orderGood.setProductPieceWeight(null);
87 87 orderGood.setProductTotalPrice(productDto.getProductTotalPrice().multiply(NumberTransform.ONE_HUNDERD).longValue());
88 88 orderGood.setProductCouponAmount(productDto.getCouponAmount()!=null?productDto.getCouponAmount().multiply(NumberTransform.ONE_HUNDERD).longValue():null);
... ...
etrade-order/src/main/java/com/diligrp/etrade/order/service/impl/OrderServiceImpl.java
... ... @@ -363,7 +363,7 @@ public class OrderServiceImpl implements OrderService {
363 363 //插入订单商品 并计算卖家费用
364 364 List<OrderGoods> orderGoods = orderGoodsService.buildOrderGoods(order,buyerOrderDto.getProductDtoList());
365 365 //插入订单商品买方手续费
366   - orderPaymentFeeService.buildSellerPaymentFees(order,orderGoods,YesOrNoEnum.NO.getCode());
  366 + //orderPaymentFeeService.buildSellerPaymentFees(order,orderGoods,YesOrNoEnum.NO.getCode());
367 367  
368 368 orderMapper.updateOrderOtherById(order);
369 369 //配送信息
... ...