Commit bf63ad93 by ping.wu

商品券校验提示

parent 1321c6dd
......@@ -85,6 +85,7 @@ public enum ResponseResult {
SHOPPING_CART_SHOP_ID_NOT_EMPTY("44019", "门店编号不能为空"),
SHOPPING_CART_COUPON_CAN_NOT_USE_THIS_SHOP("44020", "券不适用于该门店"),
SHOPPING_CART_SEAT_EMPTY("44020", "键位为空"),
SHOPPING_CART_COUPON_USED("44021", "商品券已使用"),
/**
* 订单状态码
......
......@@ -192,7 +192,7 @@ public class ShoppingCartMCoffeeServiceImpl {
coupons.add(calculationDiscountCoupon);
}
if (couponCode != null && couponCode.equals(cartGoods.getCouponCode())) {
throw new ServiceException(ResponseResult.PARAMETER_MISSING, "商品券已添加");
throw new ServiceException(ResponseResult.SHOPPING_CART_COUPON_USED);
}
}
}
......
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