| Line 58... |
Line 58... |
| 58 |
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
|
58 |
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
|
| 59 |
import com.spice.profitmandi.dao.repository.cs.CsService;
|
59 |
import com.spice.profitmandi.dao.repository.cs.CsService;
|
| 60 |
import com.spice.profitmandi.dao.repository.cs.PartnerRegionRepository;
|
60 |
import com.spice.profitmandi.dao.repository.cs.PartnerRegionRepository;
|
| 61 |
import com.spice.profitmandi.dao.repository.cs.PositionRepository;
|
61 |
import com.spice.profitmandi.dao.repository.cs.PositionRepository;
|
| 62 |
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
|
62 |
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
|
| 63 |
import com.spice.profitmandi.dao.repository.dtr.RetailerBlockBrandsRepository;
|
- |
|
| 64 |
import com.spice.profitmandi.dao.repository.dtr.UserAccountRepository;
|
63 |
import com.spice.profitmandi.dao.repository.dtr.UserAccountRepository;
|
| 65 |
import com.spice.profitmandi.dao.repository.dtr.UserRepository;
|
64 |
import com.spice.profitmandi.dao.repository.dtr.UserRepository;
|
| 66 |
import com.spice.profitmandi.dao.repository.fofo.CurrentInventorySnapshotRepository;
|
65 |
import com.spice.profitmandi.dao.repository.fofo.CurrentInventorySnapshotRepository;
|
| 67 |
import com.spice.profitmandi.dao.repository.fofo.FofoPaymentRepository;
|
66 |
import com.spice.profitmandi.dao.repository.fofo.FofoPaymentRepository;
|
| 68 |
import com.spice.profitmandi.dao.repository.transaction.OrderRepository;
|
67 |
import com.spice.profitmandi.dao.repository.transaction.OrderRepository;
|
| Line 146... |
Line 145... |
| 146 |
|
145 |
|
| 147 |
@Autowired
|
146 |
@Autowired
|
| 148 |
private FofoStoreRepository fofoStoreRepository;
|
147 |
private FofoStoreRepository fofoStoreRepository;
|
| 149 |
|
148 |
|
| 150 |
@Autowired
|
149 |
@Autowired
|
| 151 |
private RetailerBlockBrandsRepository retailerBlockBrandRepository;
|
- |
|
| 152 |
|
- |
|
| 153 |
@Autowired
|
- |
|
| 154 |
private OrderRepository orderRepository;
|
150 |
private OrderRepository orderRepository;
|
| 155 |
|
151 |
|
| 156 |
@Autowired
|
152 |
@Autowired
|
| 157 |
private TagListingRepository tagListingRepository;
|
153 |
private TagListingRepository tagListingRepository;
|
| 158 |
|
154 |
|
| Line 207... |
Line 203... |
| 207 |
ValidateCartResponse vc = null;
|
203 |
ValidateCartResponse vc = null;
|
| 208 |
int userId = (int) request.getAttribute("userId");
|
204 |
int userId = (int) request.getAttribute("userId");
|
| 209 |
|
205 |
|
| 210 |
int cartId = userAccountRepository.selectByUserIdType(userId, AccountType.cartId).getAccountKey();
|
206 |
int cartId = userAccountRepository.selectByUserIdType(userId, AccountType.cartId).getAccountKey();
|
| 211 |
List<CartItem> cartItems = cartRequest.getCartItems();
|
207 |
List<CartItem> cartItems = cartRequest.getCartItems();
|
| 212 |
cartService.addItemsToCart(cartId, cartItems);
|
208 |
cartService.addItemsToCart(cartId, userAccountRepository.getUserCart(userId).getUserId(), cartItems);
|
| 213 |
CartResponse cartValidationResponse = cartService.getCartValidation(cartId);
|
209 |
CartResponse cartValidationResponse = cartService.getCartValidation(cartId);
|
| 214 |
|
210 |
|
| 215 |
for (CartItemResponseModel cartItem : cartValidationResponse.getCartItems()) {
|
211 |
for (CartItemResponseModel cartItem : cartValidationResponse.getCartItems()) {
|
| 216 |
ProductPojo pp = contentPojoPopulator.getShortContent(cartItem.getCatalogItemId());
|
212 |
ProductPojo pp = contentPojoPopulator.getShortContent(cartItem.getCatalogItemId());
|
| 217 |
|
213 |
|