mirror of
https://github.com/suhf/No1WMS.git
synced 2026-02-05 04:03:45 +09:00
#update
stock/create.jsp stock/list.jsp WarehouseController.java WarehouseMapper.xml WarehouseService.java #insert warehouse/create.jsp warehouse/list.jsp
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user