Subversion Repositories SmartDukaan

Rev

Rev 32839 | Rev 33806 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32839 Rev 33412
Line 1209... Line 1209...
1209
    }
1209
    }
1210
 
1210
 
1211
    @RequestMapping(value = "/getFocusedModel", method = RequestMethod.GET)
1211
    @RequestMapping(value = "/getFocusedModel", method = RequestMethod.GET)
1212
    public String getFocusedModel(HttpServletRequest request,
1212
    public String getFocusedModel(HttpServletRequest request,
1213
                                  @RequestParam(name = "offset", defaultValue = "0") int offset,
1213
                                  @RequestParam(name = "offset", defaultValue = "0") int offset,
1214
                                  @RequestParam(name = "limit", defaultValue = "10") int limit, Model model)
1214
                                  @RequestParam(name = "limit", defaultValue = "0") int limit, Model model)
1215
            throws ProfitMandiBusinessException {
1215
            throws ProfitMandiBusinessException {
1216
 
1216
 
1217
        long size = 0;
1217
        long size = 0;
1218
        List<FocusedModel> focusedModels = focusedModelRepository.selectAll(offset, limit);
1218
        List<FocusedModel> focusedModels = focusedModelRepository.selectAll(offset, limit);
1219
 
-
 
-
 
1219
        Collections.reverse(focusedModels);
1220
        size = focusedModelRepository.selectAllCount();
1220
        size = focusedModelRepository.selectAllCount();
1221
        if (!focusedModels.isEmpty()) {
1221
        if (!focusedModels.isEmpty()) {
1222
            Map<Integer, Item> itemMap = this.getItemByCatalogId(focusedModels);
1222
            Map<Integer, Item> itemMap = this.getItemByCatalogId(focusedModels);
1223
            Map<Integer, Region> regionMap = this.getRegionByRegionId(focusedModels);
1223
            Map<Integer, Region> regionMap = this.getRegionByRegionId(focusedModels);
1224
 
1224