Commit f9b16929 by 徐康

早餐随心配套餐名称

parent 3fad8041
...@@ -113,7 +113,13 @@ public class DeliveryAdapter { ...@@ -113,7 +113,13 @@ public class DeliveryAdapter {
deliveryOrderRequestDto.setDepatchWeight(order.getWeight()); deliveryOrderRequestDto.setDepatchWeight(order.getWeight());
//deliveryOrderRequestDto.setSerialNumber(order.getOtherCode()); //deliveryOrderRequestDto.setSerialNumber(order.getOtherCode());
deliveryOrderRequestDto.setOrderId(order.getOid()); deliveryOrderRequestDto.setOrderId(order.getOid());
deliveryOrderRequestDto.setOrderRemark(order.getRemark()); JSONObject json = JSON.parseObject(order.getExtInfo());
String needTableWare = json.getString("needTableware");
if("0".equals(needTableWare)) {
deliveryOrderRequestDto.setOrderRemark("无需餐具(刀、叉、勺),"+order.getRemark());
} else {
deliveryOrderRequestDto.setOrderRemark("需要餐具(刀、叉、勺),"+order.getRemark());
}
deliveryOrderRequestDto.setOrderTotalAmount(order.getAmount().intValue()); deliveryOrderRequestDto.setOrderTotalAmount(order.getAmount().intValue());
deliveryOrderRequestDto.setOrderActualAmount(order.getAmount().intValue()); deliveryOrderRequestDto.setOrderActualAmount(order.getAmount().intValue());
deliveryOrderRequestDto.setPartnerId(order.getCompanyId()); deliveryOrderRequestDto.setPartnerId(order.getCompanyId());
......
...@@ -137,6 +137,10 @@ public class ShoppingCartMCoffeeServiceImpl { ...@@ -137,6 +137,10 @@ public class ShoppingCartMCoffeeServiceImpl {
List<ActivityCalculationDiscountRequestDto.CalculationDiscountCoupon> coupons = checkGoodsCoupon(oldCartGoodsList, operationType, couponCode,goodsId); List<ActivityCalculationDiscountRequestDto.CalculationDiscountCoupon> coupons = checkGoodsCoupon(oldCartGoodsList, operationType, couponCode,goodsId);
CartGoods addCartGoods = convent2CartGoods(addShoppingCartGoodsRequestVo, goodsId); CartGoods addCartGoods = convent2CartGoods(addShoppingCartGoodsRequestVo, goodsId);
setClassificationAndPrice(addCartGoods, productBeanListSpuClass); setClassificationAndPrice(addCartGoods, productBeanListSpuClass);
if(StringUtils.isNotEmpty(addShoppingCartGoodsRequestVo.getGroupName())) {
addCartGoods.setSkuName(addShoppingCartGoodsRequestVo.getGroupName());
addCartGoods.setSpuName(addShoppingCartGoodsRequestVo.getGroupName());
}
//查询多个商品库存信息 //查询多个商品库存信息
// Integer checkQty = this.checkSkuQty(oldCartGoodsList, addCartGoods); // Integer checkQty = this.checkSkuQty(oldCartGoodsList, addCartGoods);
// queryManyGoodsStocks(partnerId, storeId, menuType, productIds, productBeanListSpuClass, skuId, checkQty); // queryManyGoodsStocks(partnerId, storeId, menuType, productIds, productBeanListSpuClass, skuId, checkQty);
......
...@@ -112,4 +112,9 @@ public class MCoffeeAddGoodsRequestVo { ...@@ -112,4 +112,9 @@ public class MCoffeeAddGoodsRequestVo {
*/ */
private String couponCode; private String couponCode;
/**
* 套餐名称
*/
private String groupName;
} }
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