카테고리 수정 및 카테고리 jsp수정

This commit is contained in:
Kana
2024-01-05 18:34:39 +09:00
parent a5392ac111
commit 9706c8e1c9
5 changed files with 92 additions and 20 deletions

View File

@@ -66,14 +66,14 @@ public class CategoryController {
// 생성 - Ajax
@PostMapping("/category/create_process")
@ResponseBody
public int createProcess(CategoryDto dto, Model m) {
public boolean createProcess(CategoryDto dto, Model m) {
int i = categoryService.createProcess(dto);
if (i == 1) {
return i;
return true;
} else {
// ajax테스트후 결정
// m.addAttribute("dto", dto);
return 0;
m.addAttribute("dto", dto);
return false;
}
}

View File

@@ -16,5 +16,4 @@ public class CategoryDto {
private String cls_nm_3;
private String cls_nm_4;
private boolean activation;
}