| Line 43... |
Line 43... |
| 43 |
MVCResponseSender mvcResponseSender;
|
43 |
MVCResponseSender mvcResponseSender;
|
| 44 |
|
44 |
|
| 45 |
@Autowired
|
45 |
@Autowired
|
| 46 |
CookiesFetcher cookiesFetcher;
|
46 |
CookiesFetcher cookiesFetcher;
|
| 47 |
|
47 |
|
| 48 |
@RequestMapping(value = "/orders", method = RequestMethod.POST)
|
48 |
@RequestMapping(value = "/purchase", method = RequestMethod.POST)
|
| 49 |
public String orderByAirwayBillOrInvoiceNumber(HttpServletRequest request, @RequestParam(name = ProfitMandiConstants.AIRWAY_BILL_OR_INVOICE_NUMBER) String airwayBillOrInvoiceNumber, Model model) throws Throwable{
|
49 |
public String orderByAirwayBillOrInvoiceNumber(HttpServletRequest request, @RequestParam(name = ProfitMandiConstants.AIRWAY_BILL_OR_INVOICE_NUMBER) String airwayBillOrInvoiceNumber, Model model) throws Throwable{
|
| 50 |
FofoDetails fofoDetails = cookiesFetcher.getCookiesObject(request);
|
50 |
FofoDetails fofoDetails = cookiesFetcher.getCookiesObject(request);
|
| 51 |
List<Object[]> rows = orderRepository.selectByAirwayBillOrInvoiceNumber(airwayBillOrInvoiceNumber, fofoDetails.getFofoId());
|
51 |
List<Object[]> rows = orderRepository.selectByAirwayBillOrInvoiceNumber(airwayBillOrInvoiceNumber, fofoDetails.getFofoId());
|
| 52 |
Set<Integer> itemIds = new HashSet<>();
|
52 |
Set<Integer> itemIds = new HashSet<>();
|
| 53 |
String invoiceNumber = null;
|
53 |
String invoiceNumber = null;
|