Commit bb98d876 by huiyang.chen

Merge branch '2020/11/2-商品券bug-huiyang' into qa

# Conflicts:
#	assortment-ordercenter-sdk/pom.xml
#	assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/enums/OldOrderAccountType.java
#	order-application-service/pom.xml
#	order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
#	order-application-service/src/main/java/cn/freemud/entities/dto/shoppingCart/ShoppingCartGoodsDto.java
#	order-application-service/src/main/java/cn/freemud/service/mccafe/impl/CouponClientServiceImpl.java
#	order-management/pom.xml
#	ordercenter-sdk/pom.xml
#	shopping-cart-application-service/src/main/java/cn/freemud/entities/dto/shoppingCart/ShoppingCartGoodsDto.java
#	shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
#	shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/calculation/CouponDiscountCalculation.java
parents ab37e427 c7c4f4e5
...@@ -39,42 +39,43 @@ ...@@ -39,42 +39,43 @@
| 1.4.1.RELEASE | 返回储值卡支付订单支付金额 | 李小二 | 2020-05-11 | | 1.4.1.RELEASE | 返回储值卡支付订单支付金额 | 李小二 | 2020-05-11 |
| 1.4.2.RELEASE | 申请退款切取消接口新增超时时间字段 | 伍平 | 2020-05-12 | | 1.4.2.RELEASE | 申请退款切取消接口新增超时时间字段 | 伍平 | 2020-05-12 |
| 1.4.3.RELEASE | 增加售后阶段 | 海波 | 2020-05-14 | | 1.4.3.RELEASE | 增加售后阶段 | 海波 | 2020-05-14 |
| 1.4.4.RELEASE | 全单退增加是否退配送费 | 海波 | 2020-05-18 | | 1.4.4.RELEASE | 全单退增加是否退配送费 | 海波 | 2020-05-18 |
| 1.4.5.RELEASE | 升级券码sdk |胡超 | 2020-05-18 | | 1.4.5.RELEASE | 升级券码sdk |胡超 | 2020-05-18 |
| 1.4.6.RELEASE | 券码接口新增组织机构 |胡超 | 2020-05-18 | | 1.4.6.RELEASE | 券码接口新增组织机构 |胡超 | 2020-05-18 |
| 1.4.7.RELEASE | 创建订单增加appid字段 | wuping | 2020-05-18 | | 1.4.7.RELEASE | 创建订单增加appid字段 | wuping | 2020-05-18 |
| 1.4.8.RELEASE | 规范orderExtInfoDto | 侯书虎 | 2020-05-19 | | 1.4.8.RELEASE | 规范orderExtInfoDto | 侯书虎 | 2020-05-19 |
| 1.3.4-SNAPSHOT | 返回售后单创建时间 | wuping | 2020-04-27 | | 1.3.4-SNAPSHOT | 返回售后单创建时间 | wuping | 2020-04-27 |
| 1.3.5-SNAPSHOT | 取消订单增加任务 | wuping | 2020-04-28 | | 1.3.5-SNAPSHOT | 取消订单增加任务 | wuping | 2020-04-28 |
| 1.4.9.RELEASE | 售后单任务 | wuping | 2020-05-21 | | 1.4.9.RELEASE | 售后单任务 | wuping | 2020-05-21 |
| 1.5.0-RELEASE| 订单查询返回配送渠道字段 | 雷后领 | 2020-05-22 | | 1.5.0-RELEASE| 订单查询返回配送渠道字段 | 雷后领 | 2020-05-22 |
| 1.7.7-SNAPSHOT| 聚合订单综合查询新增新订单类型 | wuping | 2020-05-15 | | 1.7.7-SNAPSHOT| 聚合订单综合查询新增新订单类型 | wuping | 2020-05-15 |
| 1.7.8-SNAPSHOT| 预约单接单后提醒时间区分外卖自提 | wuping | 2020-05-18 | | 1.7.8-SNAPSHOT| 预约单接单后提醒时间区分外卖自提 | wuping | 2020-05-18 |
| 1.5.1-RELEASE| 增加订单支付方式 | 海波 | 2020-05-25 | | 1.5.1-RELEASE| 增加订单支付方式 | 海波 | 2020-05-25 |
| 1.5.2-RELEASE| 新增订单完成时间时间戳 | 雷后领 | 2020-05-26 | | 1.5.2-RELEASE| 新增订单完成时间时间戳 | 雷后领 | 2020-05-26 |
| 1.5.3-RELEASE| 增加下游订单号 | 海波 | 2020-06-01 | | 1.5.3-RELEASE| 增加下游订单号 | 海波 | 2020-06-01 |
| 1.5.4-RELEASE| 客如云增加字段 | 茹祥 | 2020-06-01 | | 1.5.4-RELEASE| 客如云增加字段 | 茹祥 | 2020-06-01 |
| 1.5.5-RELEASE| 会员价优惠新增类型 | 侯书虎 | 2020-06-02 | | 1.5.5-RELEASE| 会员价优惠新增类型 | 侯书虎 | 2020-06-02 |
| 1.5.6-RELEASE| 更新客如云方法名 | 海波 | 2020-06-05 | | 1.5.6-RELEASE| 更新客如云方法名 | 海波 | 2020-06-05 |
| 1.5.7-RELEASE| 集点参数为0 不要调会员接口 | 梁崇福 | 2020-06-08 | | 1.5.7-RELEASE| 集点参数为0 不要调会员接口 | 梁崇福 | 2020-06-08 |
| 1.5.8-RELEASE| 查询非码微店订单,下载 | 梁崇福 | 2020-06-08 | | 1.5.8-RELEASE| 查询非码微店订单,下载 | 梁崇福 | 2020-06-08 |
| 1.5.9-RELEASE| 券码修改为channle_code | 梁崇福 | 2020-06-08 | | 1.5.9-RELEASE| 券码修改为channle_code | 梁崇福 | 2020-06-08 |
| 1.8.9-SNAPSHOT | 用户订单和es综合查询接口新增订单业务类型集合 | wuping | 2020-06-01 | | 1.8.9-SNAPSHOT | 用户订单和es综合查询接口新增订单业务类型集合 | wuping | 2020-06-01 |
| 1.5.10.RELEASE | 买券订单修改升级RELEASE | wuping | 2020-06-10 | | 1.5.10.RELEASE | 买券订单修改升级RELEASE | wuping | 2020-06-10 |
| 1.9.2-SNAPSHOT| 预约单任务删除 | wuping | 2020-06-05 | | 1.9.2-SNAPSHOT| 预约单任务删除 | wuping | 2020-06-05 |
| 1.5.11.RELEASE | 预约单任务删除RELEASE | wuping | 2020-06-15 | | 1.5.11.RELEASE | 预约单任务删除RELEASE | wuping | 2020-06-15 |
| 1.5.12.RELEASE | 围餐 | dingkai | 2020-06-16 | | 1.5.12.RELEASE | 围餐 | dingkai | 2020-06-16 |
| 1.5.13.RELEASE | 小助手营业额统计 | 梁崇福 | 2020-06-22 | | 1.5.13.RELEASE | 小助手营业额统计 | 梁崇福 | 2020-06-22 |
| 1.5.14.RELEASE | 停车费sdk | dingkai | 2020-06-22 | | 1.5.14.RELEASE | 停车费sdk | dingkai | 2020-06-22 |
| 1.5.16.RELEASE | 增加支付渠道编号 | 李小二 | 2020-07-08 | | 1.5.16.RELEASE | 增加支付渠道编号 | 李小二 | 2020-07-08 |
| 1.5.17.RELEASE | 停车场订单修改 | 伍平 | 2020-07-13 | | 1.5.17.RELEASE | 停车场订单修改 | 伍平 | 2020-07-13 |
| 2.0.5-RELEASE | 围餐修改 | 谌会阳 | 2020-07-27 | | 2.0.5-RELEASE | 围餐修改 | 谌会阳 | 2020-07-27 |
| 2.0.6-RELEASE | ordercenter新增常量 | 张志恒 | 2020-08-04 | | 2.0.6-RELEASE | ordercenter新增常量 | 张志恒 | 2020-08-04 |
| 2.0.7-RELEASE | 加料商品开发 | 梁崇福 | 2020-08-24 | | 2.0.7-RELEASE | 加料商品开发 | 梁崇福 | 2020-08-24 |
| 2.0.8-RELEASE | 订单渠道映射调整 | 李小二 | 2020-08-24 | | 2.0.8-RELEASE | 订单渠道映射调整 | 李小二 | 2020-08-24 |
| 2.0.9-RELEASE | 麦咖啡 | 徐康 | 2020-09-07 | | 2.0.9-RELEASE | 麦咖啡 | 徐康 | 2020-09-07 |
| 2.10.0-RELEASE | 停车场订单 | 张志恒 | 2020-09-28 | | 2.10.0-RELEASE | 停车场订单 | 张志恒 | 2020-09-28 |
| 2.0.11-RELEASE | 麦咖啡多规格 | 徐康 | 2020-10-09 | | 2.0.11-RELEASE | 麦咖啡多规格 | 徐康 | 2020-10-09 |
| 2.0.12-RELEASE | 停车场订单 | 张志恒 | 2020-10-14 | | 2.0.12-RELEASE | 停车场订单 | 张志恒 | 2020-10-14 |
| 2.0.13-RELEASE | 麦咖啡运费券 | 徐康 | 2020-10-20 | | 2.0.13-RELEASE | 麦咖啡运费券 | 徐康 | 2020-10-20 |
| 2.0.14-RELEASE | 集点推送改造 | 徐康 | 2020-10-28 | | 2.0.14-RELEASE | 集点推送改造 | 徐康 | 2020-10-28 |
| 2.0.15.RELEASE | 麦咖啡加料 | 徐康 | 2020-10-30 |
...@@ -42,8 +42,6 @@ public class ProductVo { ...@@ -42,8 +42,6 @@ public class ProductVo {
* 商品spu名称 * 商品spu名称
*/ */
private String spuName; private String spuName;
private String couponName;
/** /**
* 商品的规格信息加属性信息 * 商品的规格信息加属性信息
*/ */
......
...@@ -1490,8 +1490,16 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService { ...@@ -1490,8 +1490,16 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
req.setOrderCode(orderBean.getOid()); req.setOrderCode(orderBean.getOid());
orderSdkService.updateCostCouponCode(req,LogTreadLocal.getTrackingNo()); orderSdkService.updateCostCouponCode(req,LogTreadLocal.getTrackingNo());
List<OrderBean.AccountBean> accountList = orderBean.getAccountList().stream().filter(
account -> (withOrderBuyCouponCode.equals(account.getAccountId()))
).collect(Collectors.toList());
if(CollectionUtils.isNotEmpty(accountList)) {
accountList.forEach(o -> o.setAccountId(buyCouponCode));
}
} catch (Exception e){ } catch (Exception e){
LogUtil.error("getProducts_exception", null, null, e); LogUtil.error("买券异常", null, null, e);
} }
} }
......
...@@ -51,4 +51,5 @@ ...@@ -51,4 +51,5 @@
| 1.3.15.RELEASE | 停车场订单撤单 | 张志恒 | 2020-09-28 | | 1.3.15.RELEASE | 停车场订单撤单 | 张志恒 | 2020-09-28 |
| 1.3.16.RELEASE | 麦咖啡多规格 | 徐康 | 2020-10-09 | | 1.3.16.RELEASE | 麦咖啡多规格 | 徐康 | 2020-10-09 |
| 1.3.17.RELEASE | 集点推送改造 | 梁崇福 | 2020-10-28 | | 1.3.17.RELEASE | 集点推送改造 | 梁崇福 | 2020-10-28 |
| 1.3.18.RELEASE | 麦咖啡加料 | 徐康 | 2020-10-30 |
...@@ -238,6 +238,14 @@ public class ShoppingCartMCoffeeServiceImpl { ...@@ -238,6 +238,14 @@ public class ShoppingCartMCoffeeServiceImpl {
//使用券的是,如果购物车已经存在这个券,先清除,再添加 //使用券的是,如果购物车已经存在这个券,先清除,再添加
cartGoods.setQty(0); cartGoods.setQty(0);
} }
if (StringUtils.isNotEmpty(goodsId) && StringUtils.isBlank(couponCode) && goodsId.equals(cartGoods.getSkuId())) {
if (cartGoods.getQty() > 1 ){
cartGoods.setQty(cartGoods.getQty() - 1);
}else {
//如果购物车存在相同的商品,则先删除购物车商品,在新增商品券购物车行
cartGoods.setQty(0);
}
}
//同样商品券不能使用 //同样商品券不能使用
/* if (StringUtils.isNotEmpty(couponCode)&& StringUtils.isNotEmpty(cartGoods.getCouponCode()) && goodsId.equals(cartGoods.getGoodsId())) { /* if (StringUtils.isNotEmpty(couponCode)&& StringUtils.isNotEmpty(cartGoods.getCouponCode()) && goodsId.equals(cartGoods.getGoodsId())) {
throw new ServiceException(ResponseResult.SHOPPING_CART_GOODS_COUPON_CAN_NOT_USE); throw new ServiceException(ResponseResult.SHOPPING_CART_GOODS_COUPON_CAN_NOT_USE);
......
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