mirror of
https://github.com/suhf/No1WMS.git
synced 2026-02-05 12:13:33 +09:00
카테고리 수정 및 카테고리 jsp수정
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -16,5 +16,4 @@ public class CategoryDto {
|
||||
private String cls_nm_3;
|
||||
private String cls_nm_4;
|
||||
private boolean activation;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user