| Line 382... |
Line 382... |
| 382 |
host, port, webapp);
|
382 |
host, port, webapp);
|
| 383 |
model.addAllAttributes(map);
|
383 |
model.addAllAttributes(map);
|
| 384 |
return "grn-details";
|
384 |
return "grn-details";
|
| 385 |
}
|
385 |
}
|
| 386 |
|
386 |
|
| - |
|
387 |
@RequestMapping(value = "/activatedImeis")
|
| - |
|
388 |
public String activatedImeis(HttpServletRequest request, Model model) throws ProfitMandiBusinessException {
|
| - |
|
389 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
| - |
|
390 |
|
| - |
|
391 |
List<InventoryItem> inventoryItems = inventoryItemRepository.selectByActivatedNotSold(loginDetails.getFofoId());
|
| - |
|
392 |
inventoryItems.stream().forEach(x -> {
|
| - |
|
393 |
try {
|
| - |
|
394 |
x.setItem(itemRepository.selectById(x.getItemId()));
|
| - |
|
395 |
} catch (Exception e) {
|
| - |
|
396 |
e.printStackTrace();
|
| - |
|
397 |
}
|
| - |
|
398 |
});
|
| - |
|
399 |
model.addAttribute("inventoryItems", inventoryItems);
|
| - |
|
400 |
return "activated-imeis";
|
| - |
|
401 |
}
|
| - |
|
402 |
|
| 387 |
@RequestMapping(value = "/getInventoryItemAgingByInterval", method = RequestMethod.POST)
|
403 |
@RequestMapping(value = "/getInventoryItemAgingByInterval", method = RequestMethod.POST)
|
| 388 |
public String getInventoryItemAgingByInterval(HttpServletRequest request, @RequestBody List<Integer> intervals,
|
404 |
public String getInventoryItemAgingByInterval(HttpServletRequest request, @RequestBody List<Integer> intervals,
|
| 389 |
Model model, @RequestParam(name = "searchContent", defaultValue = "") String searchContent,
|
405 |
Model model, @RequestParam(name = "searchContent", defaultValue = "") String searchContent,
|
| 390 |
@RequestParam(name = "offset", defaultValue = "0") int offset,
|
406 |
@RequestParam(name = "offset", defaultValue = "0") int offset,
|
| 391 |
@RequestParam(name = "limit", defaultValue = "10") int limit) throws ProfitMandiBusinessException {
|
407 |
@RequestParam(name = "limit", defaultValue = "10") int limit) throws ProfitMandiBusinessException {
|