Merge branch 'gray' into test6.9.7
Showing
1 changed file
with
5 additions
and
5 deletions
@@ -1453,7 +1453,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | @@ -1453,7 +1453,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | ||
1453 | //throw new ServiceException(400,"错误:物流收货人手机号不能为空!"); | 1453 | //throw new ServiceException(400,"错误:物流收货人手机号不能为空!"); |
1454 | } | 1454 | } |
1455 | 1455 | ||
1456 | - LOGGER.info("callAppraise orderCode is {}, AppraiseExpressInfoBo is {}, startTime is {}", orderCode, bo ,DateUtil.getCurrentTimeSeconds()); | 1456 | + LOGGER.info("callAppraise orderCode is {}, AppraiseExpressInfoBo is {}, startTime is {}", orderCode, bo, DateUtil.getCurrentTimeSeconds()); |
1457 | 1457 | ||
1458 | JSONObject jsonObject = serviceCaller.asyncCall(args, bo, JSONObject.class).get(5, TimeUnit.SECONDS); | 1458 | JSONObject jsonObject = serviceCaller.asyncCall(args, bo, JSONObject.class).get(5, TimeUnit.SECONDS); |
1459 | LOGGER.info("callAppraise orderCode is {}, endTime is {}", orderCode, DateUtil.getCurrentTimeSeconds()); | 1459 | LOGGER.info("callAppraise orderCode is {}, endTime is {}", orderCode, DateUtil.getCurrentTimeSeconds()); |
@@ -1518,7 +1518,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | @@ -1518,7 +1518,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | ||
1518 | LOGGER.info("getDeliveryAddressByOrderCode call buyer address ,req is {}", req); | 1518 | LOGGER.info("getDeliveryAddressByOrderCode call buyer address ,req is {}", req); |
1519 | return this.getReceiveInfoByOrderCode(req); | 1519 | return this.getReceiveInfoByOrderCode(req); |
1520 | } | 1520 | } |
1521 | - LOGGER.info("getDeliveryAddressByOrderCode exit ,req is {} ,buyerOrder {}", req,buyerOrder); | 1521 | + LOGGER.info("getDeliveryAddressByOrderCode exit ,req is {} ,buyerOrder {}", req, buyerOrder); |
1522 | return null; | 1522 | return null; |
1523 | } | 1523 | } |
1524 | 1524 | ||
@@ -1723,6 +1723,9 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | @@ -1723,6 +1723,9 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | ||
1723 | } | 1723 | } |
1724 | 1724 | ||
1725 | private void completeAmountInfo(OrderDetailResp resp, String orderCode) { | 1725 | private void completeAmountInfo(OrderDetailResp resp, String orderCode) { |
1726 | + List<OrderCoupon> orderCoupons = orderCouponMapper.selectByOrderCode(Long.valueOf(orderCode)); | ||
1727 | + resp.setCouponCodeList(orderCoupons.stream().map(OrderCoupon::getCouponCode).collect(Collectors.toList())); | ||
1728 | + | ||
1726 | BuyerOrderMeta buyerMeta = buyerOrderMetaMapper.selectByOrderCodeAndKey(orderCode, ORDER_CONFIG_INNER_BUYER_FOR_AMMOUNT); | 1729 | BuyerOrderMeta buyerMeta = buyerOrderMetaMapper.selectByOrderCodeAndKey(orderCode, ORDER_CONFIG_INNER_BUYER_FOR_AMMOUNT); |
1727 | if (null == buyerMeta) { | 1730 | if (null == buyerMeta) { |
1728 | return; | 1731 | return; |
@@ -1730,9 +1733,6 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | @@ -1730,9 +1733,6 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | ||
1730 | JSONObject metaValue = JSONObject.parseObject(buyerMeta.getMetaValue()); | 1733 | JSONObject metaValue = JSONObject.parseObject(buyerMeta.getMetaValue()); |
1731 | resp.setShipFee(String.format("%.2f", metaValue.getDoubleValue("shippingAmount")));// 运费 | 1734 | resp.setShipFee(String.format("%.2f", metaValue.getDoubleValue("shippingAmount")));// 运费 |
1732 | resp.setCouponCutAmount(String.format("%.2f", metaValue.getDoubleValue("couponCutAmount") + metaValue.getDoubleValue("shippingCouponCutAmount"))); | 1735 | resp.setCouponCutAmount(String.format("%.2f", metaValue.getDoubleValue("couponCutAmount") + metaValue.getDoubleValue("shippingCouponCutAmount"))); |
1733 | - | ||
1734 | - List<OrderCoupon> orderCoupons = orderCouponMapper.selectByOrderCode(Long.valueOf(orderCode)); | ||
1735 | - resp.setCouponCodeList(orderCoupons.stream().map(OrderCoupon::getCouponCode).collect(Collectors.toList())); | ||
1736 | } | 1736 | } |
1737 | 1737 | ||
1738 | 1738 |
-
Please register or login to post a comment