stock/create.jsp
stock/list.jsp
WarehouseController.java
WarehouseMapper.xml
WarehouseService.java

#insert
warehouse/create.jsp
warehouse/list.jsp
This commit is contained in:
sungsu
2024-01-09 00:47:19 +09:00
parent 1065d132f7
commit 1fb6fbefe2
7 changed files with 278 additions and 25 deletions

View File

@@ -27,7 +27,7 @@ public class WarehouseController {
//스톡서비스로 재고 리스트 출력 메서트 작성
List<Object> dto = service.list(searchn, search, perPage);
m.addAttribute("list", dto);
m.addAttribute("wlist", dto);
int pageNum = 4;//보여질 페이지 번호 수
int totalPages = count / perPage + (count % perPage > 0 ? 1 : 0); // 전체 페이지 수
@@ -78,7 +78,7 @@ public class WarehouseController {
@GetMapping("/warehouse/create")
public String create()
{
return "stock/create";
return "warehouse/create";
}

View File

@@ -14,13 +14,10 @@ public class WarehouseService {
public int count(int searchn, String search) {
System.out.println(searchn+search);
Map<String,Object> m = new HashMap<String, Object>();
m.put("searchn",searchn);
m.put("search", search);
m.put("start", 0);
m.put("perPage", 10000);
return mapper.count(m);
}