增加查询购物车功能
This commit is contained in:
@@ -50,7 +50,9 @@ public class CartConsumer {
|
||||
throw new MsgException("商品数量错误");
|
||||
}
|
||||
cartService.createCart(jsonObject);
|
||||
}else if(jsonObject.getString("type").equals("createOrder")){
|
||||
}else if (jsonObject.getString("type").equals("queryCart") ) {
|
||||
cartService.queryCart(jsonObject);
|
||||
} else if(jsonObject.getString("type").equals("createOrder")){
|
||||
String cartDetail = redisUtil.getMessage(RedisCst.TABLE_CART.concat(tableId).concat("-").concat(shopId));
|
||||
if (StringUtils.isEmpty(cartDetail)){
|
||||
throw new MsgException("购物车为空无法下单");
|
||||
|
||||
Reference in New Issue
Block a user