Commit 9cb38155 by xiaoer.li@freemud.com

代金券增加小料数量

parent 9d16dd1b
......@@ -83,7 +83,7 @@ public enum ResponseResult {
SHOPPING_CART_GIFTS_PRODUCT_NOT_EXIST("44018", "买赠商品不存在"),
SHOPPING_CART_SHOP_ID_NOT_EMPTY("44019", "门店编号不能为空"),
SHOPPING_CART_COUPON_CAN_NOT_USE_THIS_SHOP("44020", "券不适用于该门店"),
SHOPPING_CART_MATERIAL_ERROR("44021", "商品加料信息有变动,请手动刷新菜单"),
/**
* 订单状态码
*/
......
......@@ -554,6 +554,7 @@ public class CouponServiceImpl implements CouponService {
Product mProduct = new Product();
mProduct.setProductId(materialGoods.getSpuId());
mProduct.setAmount(Integer.valueOf(materialGoods.getOriginalPrice() + ""));
mProduct.setQuantity(cartGood.getQty());
totalAmount = totalAmount + materialGoods.getOriginalPrice() * cartGood.getQty();
productList.add(mProduct);
}
......
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