Commit 5abcc4bf by 徐康

Merge branch 'feature/20201021_万能券展示问题_xukang' into 2020/10/29-fabu-huiyang

# Conflicts:
#	order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
parents 7fe04924 4d439421
...@@ -1220,6 +1220,7 @@ public class OrderAdapter { ...@@ -1220,6 +1220,7 @@ public class OrderAdapter {
Long promotionAmount = 0L; Long promotionAmount = 0L;
Long deliveryAmount = 0L; Long deliveryAmount = 0L;
Long packageAmount = 0L; Long packageAmount = 0L;
Long originalDeliveryAmount = 0L;
//限时特价优惠金额 //限时特价优惠金额
Long discountLimitAmount = 0L; Long discountLimitAmount = 0L;
Long couponAmount = 0L; Long couponAmount = 0L;
...@@ -1246,6 +1247,7 @@ public class OrderAdapter { ...@@ -1246,6 +1247,7 @@ public class OrderAdapter {
if (OrderAccountType.DELIVERY_AMOUNT.getCode().equals(accountBean.getType())) { if (OrderAccountType.DELIVERY_AMOUNT.getCode().equals(accountBean.getType())) {
//deliveryAmount = accountBean.getPrice(); //deliveryAmount = accountBean.getPrice();
deliveryAmount = null != accountBean.getActualCostAmount() ? accountBean.getActualCostAmount() : accountBean.getPrice(); deliveryAmount = null != accountBean.getActualCostAmount() ? accountBean.getActualCostAmount() : accountBean.getPrice();
originalDeliveryAmount = accountBean.getPrice();
} }
if (OrderAccountType.PACK_AMOUNT.getCode().equals(accountBean.getType())) { if (OrderAccountType.PACK_AMOUNT.getCode().equals(accountBean.getType())) {
packageAmount = accountBean.getPrice(); packageAmount = accountBean.getPrice();
...@@ -1268,9 +1270,13 @@ public class OrderAdapter { ...@@ -1268,9 +1270,13 @@ public class OrderAdapter {
customerScorePrompt = decimalFormat.format(customerScoreAmount / 100.0); customerScorePrompt = decimalFormat.format(customerScoreAmount / 100.0);
// customerScorePrompt = "积分抵扣-¥" + customerScoreAmountStr; // customerScorePrompt = "积分抵扣-¥" + customerScoreAmountStr;
} }
if (Integer.valueOf(99).equals(accountBean.getType())) {
responseVo.setFreightCouponName(accountBean.getName());
}
} }
} }
responseVo.setDeliveryAmount(deliveryAmount); responseVo.setDeliveryAmount(deliveryAmount);
responseVo.setOriginalDeliveryAmount(originalDeliveryAmount);
responseVo.setPackageAmount(packageAmount); responseVo.setPackageAmount(packageAmount);
responseVo.setDiscountLimitAmount(discountLimitAmount); responseVo.setDiscountLimitAmount(discountLimitAmount);
responseVo.setFullDiscountAmount(fullDiscountAmount); responseVo.setFullDiscountAmount(fullDiscountAmount);
...@@ -1999,7 +2005,8 @@ public class OrderAdapter { ...@@ -1999,7 +2005,8 @@ public class OrderAdapter {
discountTotalAmount = discountTotalAmount + productDiscount.getDiscountAmount()*productDiscount.getDiscountQty(); discountTotalAmount = discountTotalAmount + productDiscount.getDiscountAmount()*productDiscount.getDiscountQty();
if (OrderAccountType.PRODUCT_COUPON.getCode().equals(productDiscount.getDiscountType())) { if (OrderAccountType.PRODUCT_COUPON.getCode().equals(productDiscount.getDiscountType())) {
hasProductCoupon = true; hasProductCoupon = true;
if("啡常月享卡".equals(productDiscount.getDiscountDesc())) { Integer extendType = StringUtils.isBlank(productDiscount.getAddInfo())?null:JSON.parseObject(productDiscount.getAddInfo()).getInteger("extendType");
if(null != extendType && (4 == extendType || 5 == extendType)) {
productVo.setCouponName(productDiscount.getDiscountDesc()); productVo.setCouponName(productDiscount.getDiscountDesc());
} else { } else {
productVo.setName(productDiscount.getDiscountDesc()); productVo.setName(productDiscount.getDiscountDesc());
......
...@@ -42,6 +42,8 @@ public class ProductVo { ...@@ -42,6 +42,8 @@ public class ProductVo {
* 商品spu名称 * 商品spu名称
*/ */
private String spuName; private String spuName;
private String couponName;
/** /**
* 商品的规格信息加属性信息 * 商品的规格信息加属性信息
*/ */
......
...@@ -99,6 +99,14 @@ public class QueryOrderResponseVo { ...@@ -99,6 +99,14 @@ public class QueryOrderResponseVo {
*/ */
private Long deliveryAmount; private Long deliveryAmount;
/** /**
* 配送费原价
*/
private Long originalDeliveryAmount;
/**
* 运费券名称
*/
private String freightCouponName;
/**
* 限时折扣优惠金额 * 限时折扣优惠金额
*/ */
private Long discountLimitAmount; private Long discountLimitAmount;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment