|
@@ -57,7 +57,15 @@ public class ShoppingServiceImpl implements ShoppingService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void deleteCart(CmMallCart cmMallCart) {
|
|
|
- shoppingMapper.deleteCart(cmMallCart);
|
|
|
+ public void deleteCart(Integer userID, String productIDs) {
|
|
|
+ String[] split = {productIDs};
|
|
|
+ if (productIDs.contains(",")) {
|
|
|
+ split = productIDs.split(",");
|
|
|
+ }
|
|
|
+ for (String productID : split) {
|
|
|
+ if (productID != null && !productID.equals("")) {
|
|
|
+ shoppingMapper.deleteCart(userID, Integer.valueOf(productID));
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|