입고예정 리스트 하단 page 번호 추가

This commit is contained in:
김민구
2024-01-24 11:56:38 +09:00
parent 8e38a3f520
commit 2e29fcb969
4 changed files with 34 additions and 10 deletions

View File

@@ -33,10 +33,9 @@ public class PlanInController {
@GetMapping("/list")
public ModelAndView list(ModelAndView mav,@RequestParam(defaultValue = "0") int searchn, @RequestParam(defaultValue = "") String search, @RequestParam(defaultValue = "1") int page){
int perPage = 15;
int perPage = 10;
int startRow = (page - 1) * perPage;
int count = planinservice.count(searchn, search);
int count = planinservice.count(searchn, search, startRow, perPage);
int pageNum = 4;//보여질 페이지 번호 수