| Line 390... |
Line 390... |
| 390 |
@RequestMapping(value = "/create-order", method = RequestMethod.POST)
|
390 |
@RequestMapping(value = "/create-order", method = RequestMethod.POST)
|
| 391 |
public String createOrder(HttpServletRequest request, @RequestBody CreateOrderRequest createOrderRequest, Model model) throws ProfitMandiBusinessException{
|
391 |
public String createOrder(HttpServletRequest request, @RequestBody CreateOrderRequest createOrderRequest, Model model) throws ProfitMandiBusinessException{
|
| 392 |
LOGGER.info("request at uri {} body {}", request.getRequestURI(), createOrderRequest);
|
392 |
LOGGER.info("request at uri {} body {}", request.getRequestURI(), createOrderRequest);
|
| 393 |
LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
|
393 |
LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
|
| 394 |
|
394 |
|
| 395 |
int fofoOrderId = orderService.createOrder(createOrderRequest, fofoDetails.getFofoId());
|
395 |
int fofoOrderId = orderService.createOrder(createOrderRequest, fofoDetails.getFofoId(), accessoriesDeals);
|
| 396 |
LOGGER.info("Order has been created successfully...");
|
396 |
LOGGER.info("Order has been created successfully...");
|
| 397 |
return "redirect:/get-order/?orderId="+fofoOrderId;
|
397 |
return "redirect:/get-order/?orderId="+fofoOrderId;
|
| 398 |
}
|
398 |
}
|
| 399 |
|
399 |
|
| 400 |
@RequestMapping(value = "/order/bad_return", method = RequestMethod.POST)
|
400 |
@RequestMapping(value = "/order/bad_return", method = RequestMethod.POST)
|