| Line 8... |
Line 8... |
| 8 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
8 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
| 9 |
import com.spice.profitmandi.dao.entity.inventory.SaholicCISTable;
|
9 |
import com.spice.profitmandi.dao.entity.inventory.SaholicCISTable;
|
| 10 |
import com.spice.profitmandi.dao.entity.user.Cart;
|
10 |
import com.spice.profitmandi.dao.entity.user.Cart;
|
| 11 |
import com.spice.profitmandi.dao.entity.user.CartLine;
|
11 |
import com.spice.profitmandi.dao.entity.user.CartLine;
|
| 12 |
import com.spice.profitmandi.dao.entity.user.User;
|
12 |
import com.spice.profitmandi.dao.entity.user.User;
|
| 13 |
import com.spice.profitmandi.dao.model.CartItem;
|
13 |
import com.spice.profitmandi.dao.model.*;
|
| 14 |
import com.spice.profitmandi.dao.model.CartItemResponseModel;
|
- |
|
| 15 |
import com.spice.profitmandi.dao.model.CartMessage;
|
- |
|
| 16 |
import com.spice.profitmandi.dao.model.CartResponse;
|
- |
|
| 17 |
import com.spice.profitmandi.dao.repository.catalog.FocusedModelRepository;
|
14 |
import com.spice.profitmandi.dao.repository.catalog.FocusedModelRepository;
|
| 18 |
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
|
15 |
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
|
| 19 |
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
|
16 |
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
|
| 20 |
import com.spice.profitmandi.dao.repository.cs.PartnerRegionRepository;
|
17 |
import com.spice.profitmandi.dao.repository.cs.PartnerRegionRepository;
|
| 21 |
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
|
18 |
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
|
| Line 561... |
Line 558... |
| 561 |
|
558 |
|
| 562 |
logger.info("focusedModelShortageList {}", focusedModelShortageList);
|
559 |
logger.info("focusedModelShortageList {}", focusedModelShortageList);
|
| 563 |
return focusedModelShortageList;
|
560 |
return focusedModelShortageList;
|
| 564 |
}
|
561 |
}
|
| 565 |
|
562 |
|
| - |
|
563 |
@Override
|
| - |
|
564 |
public UserCart setCartItems(int fofoId, List<CartItem> cartItems) throws ProfitMandiBusinessException {
|
| - |
|
565 |
User user = saholicUserRepository.selectById(fofoId);
|
| - |
|
566 |
this.clearCart(user.getActiveCartId());
|
| - |
|
567 |
this.addItemsToCart(user.getActiveCartId(), cartItems);
|
| - |
|
568 |
|
| - |
|
569 |
UserCart userCart = new UserCart();
|
| - |
|
570 |
userCart.setCartId(user.getActiveCartId());
|
| - |
|
571 |
userCart.setUserId(user.getId());
|
| - |
|
572 |
return userCart;
|
| - |
|
573 |
}
|
| - |
|
574 |
|
| 566 |
}
|
575 |
}
|