mirror of
https://github.com/suhf/No1WMS.git
synced 2026-02-05 12:13:33 +09:00
add build.gradle dependencies(gson,poi,poi-ooxml) please refresh gradle
This commit is contained in:
@@ -15,7 +15,17 @@ public class CategoryController {
|
||||
|
||||
@Autowired
|
||||
CategoryService categoryService;
|
||||
|
||||
// 테스트
|
||||
@GetMapping("/category/test")
|
||||
public String testpage(Model m) {
|
||||
List<CategoryDto> dto = categoryService.selectAllCategory();
|
||||
m.addAttribute("dto", dto);
|
||||
|
||||
return "category/test";
|
||||
}
|
||||
|
||||
|
||||
// 카테고리 리스트 출력
|
||||
@GetMapping("/category/list")
|
||||
public String list(@RequestParam(name="p", defaultValue = "1")int p, Model m) {
|
||||
|
||||
@@ -10,7 +10,7 @@ public interface CategoryMapper {
|
||||
List<CategoryDto> categoryList(Map<String, Object> m);
|
||||
CategoryDto selectByKanCode(String kan_code);
|
||||
int createProcess(CategoryDto dto);
|
||||
|
||||
List<CategoryDto> selectAllCategory();
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -37,7 +37,9 @@ public class CategoryService {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
public List<CategoryDto> selectAllCategory() {
|
||||
return mapper.selectAllCategory();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user