public String page(@PathVariable("page") String page,
@PathVariable("sort") String sort,Model model){
int pageNum = WebUtil.getPageNumber(page);
int size = WebUtil.getPageSize(page);
model.addAttribute("codes",
<BUG>codeService.getCodes(sort, pageNum, size));
</BUG>
model.addAttribute("codeCount",
<BUG>codeService.countCodes(sort));
</BUG>
model.addAttribute("pageIndex", pageNum);

public String page(@PathVariable("page") String page,
@PathVariable("sort") String sort,Model model){
int pageNum = WebUtil.getPageNumber(page);
int size = WebUtil.getPageSize(page);
model.addAttribute("codes",
codeService.getCodes(null, null, null, sort, pageNum, size));
model.addAttribute("codeCount",
codeService.countCodes(null, null, null, sort));
model.addAttribute("pageIndex", pageNum);
