Java Code Examples for com.macro.mall.model.OmsCartItem#getQuantity()
The following examples show how to use
com.macro.mall.model.OmsCartItem#getQuantity() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OmsPromotionServiceImpl.java From mall-swarm with Apache License 2.0 | 5 votes |
/** * 获取购物车中指定商品的数量 */ private int getCartItemCount(List<OmsCartItem> itemList) { int count = 0; for (OmsCartItem item : itemList) { count += item.getQuantity(); } return count; }
Example 2
Source File: OmsPromotionServiceImpl.java From macrozheng with Apache License 2.0 | 5 votes |
/** * 获取购物车中指定商品的数量 */ private int getCartItemCount(List<OmsCartItem> itemList) { int count = 0; for (OmsCartItem item : itemList) { count += item.getQuantity(); } return count; }
Example 3
Source File: OmsPromotionServiceImpl.java From mall with Apache License 2.0 | 5 votes |
/** * 获取购物车中指定商品的数量 */ private int getCartItemCount(List<OmsCartItem> itemList) { int count = 0; for (OmsCartItem item : itemList) { count += item.getQuantity(); } return count; }
Example 4
Source File: OmsPromotionServiceImpl.java From macrozheng-mall with MIT License | 5 votes |
/** * 获取购物车中指定商品的数量 */ private int getCartItemCount(List<OmsCartItem> itemList) { int count = 0; for (OmsCartItem item : itemList) { count += item.getQuantity(); } return count; }