|
|
@@ -22,7 +22,7 @@ import java.util.List;
|
|
|
@RequiredArgsConstructor
|
|
|
@RestController
|
|
|
@RequestMapping("/api/database/code")
|
|
|
-@Api(tags = "09.기초데이터관리-09.코드관리")
|
|
|
+@Api(tags = "09.기초데이터관리-09.운영코드관리")
|
|
|
public class CodeController {
|
|
|
|
|
|
private final CmmnClsfCdService cmmnClsfCdService;
|
|
|
@@ -39,7 +39,7 @@ public class CodeController {
|
|
|
return new ResponseEntity<>(result, HttpStatus.OK);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "대분류코드-개별조회(TB_CMMN_CLSF_CD)", response = CmmnClsfCdDto.CmmnClsfCdInfo.class)
|
|
|
+ /* @ApiOperation(value = "대분류코드-개별조회(TB_CMMN_CLSF_CD)", response = CmmnClsfCdDto.CmmnClsfCdInfo.class)
|
|
|
@GetMapping(value = "/clsf-cd/{id}", produces = {"application/json; charset=utf8"})
|
|
|
public ResponseEntity<CmmnClsfCdDto.CmmnClsfCdInfo> findByIdCmmnClsfCd(@PathVariable final String id) {
|
|
|
CmmnClsfCd obj = this.cmmnClsfCdService.findById(id);
|
|
|
@@ -48,7 +48,7 @@ public class CodeController {
|
|
|
}
|
|
|
return new ResponseEntity<>(null, HttpStatus.OK);
|
|
|
}
|
|
|
-
|
|
|
+*/
|
|
|
@ApiOperation(value = "대분류코드-정보변경/생성(TB_CMMN_CLSF_CD)", response = CmmnClsfCdDto.CmmnClsfCdInfo.class)
|
|
|
@PostMapping(value = "/clsf-cd", produces = {"application/json; charset=utf8"})
|
|
|
public ResponseEntity<CmmnClsfCdDto.CmmnClsfCdInfo> mergeInfoCmmnClsfCd(@RequestBody @Valid final CmmnClsfCdDto.CmmnClsfCdUpdateReq req) {
|
|
|
@@ -71,7 +71,7 @@ public class CodeController {
|
|
|
|
|
|
|
|
|
////////////////////////////////////// 소분류코드
|
|
|
- @ApiOperation(value = "소분류코드-전체조회(TB_CMMN_CLSF_CD)", response = CmmnCdDto.CmmnCdInfo.class)
|
|
|
+ /*@ApiOperation(value = "소분류코드-전체조회(TB_CMMN_CD)", response = CmmnCdDto.CmmnCdInfo.class)
|
|
|
@GetMapping(value = "/cmmn-cd", produces = {"application/json; charset=utf8"})
|
|
|
public ResponseEntity<List<CmmnCdDto.CmmnCdInfo>> findAllCmmnCd() {
|
|
|
List<CmmnCdDto.CmmnCdInfo> result = new ArrayList<>();
|
|
|
@@ -81,8 +81,8 @@ public class CodeController {
|
|
|
}
|
|
|
return new ResponseEntity<>(result, HttpStatus.OK);
|
|
|
}
|
|
|
-
|
|
|
- @ApiOperation(value = "소분류코드-개별조회-목록(TB_CMMN_CLSF_CD)", response = CmmnCdDto.CmmnCdInfo.class)
|
|
|
+*/
|
|
|
+ @ApiOperation(value = "소분류코드-개별조회-목록(TB_CMMN_CD)", response = CmmnCdDto.CmmnCdInfo.class)
|
|
|
@GetMapping(value = "/cmmn-cd/{id}", produces = {"application/json; charset=utf8"})
|
|
|
public ResponseEntity<List<CmmnCdDto.CmmnCdInfo>> findByIdCmmnCd(@PathVariable final String id) {
|
|
|
List<CmmnCdDto.CmmnCdInfo> result = new ArrayList<>();
|
|
|
@@ -93,7 +93,7 @@ public class CodeController {
|
|
|
return new ResponseEntity<>(result, HttpStatus.OK);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "소분류코드-개별조회-단일(TB_CMMN_CLSF_CD)", response = CmmnCdDto.CmmnCdInfo.class)
|
|
|
+ /*@ApiOperation(value = "소분류코드-개별조회-단일(TB_CMMN_CD)", response = CmmnCdDto.CmmnCdInfo.class)
|
|
|
@GetMapping(value = "/cmmn-cd/{id}/{sub}", produces = {"application/json; charset=utf8"})
|
|
|
public ResponseEntity<CmmnCdDto.CmmnCdInfo> findByIdCmmnCd(@PathVariable final String id, @PathVariable final String sub) {
|
|
|
CmmnCd data = this.cmmnCdService.findAllByCmmnClsfCdCmmnCd(id, sub);
|
|
|
@@ -102,8 +102,8 @@ public class CodeController {
|
|
|
}
|
|
|
return new ResponseEntity<>(null, HttpStatus.NOT_FOUND);
|
|
|
}
|
|
|
-
|
|
|
- @ApiOperation(value = "소분류코드-정보변경/생성(TB_CMMN_CLSF_CD)", response = CmmnCdDto.CmmnCdInfo.class)
|
|
|
+*/
|
|
|
+ @ApiOperation(value = "소분류코드-정보변경/생성(TB_CMMN_CD)", response = CmmnCdDto.CmmnCdInfo.class)
|
|
|
@PostMapping(value = "/cmmn-cd", produces = {"application/json; charset=utf8"})
|
|
|
public ResponseEntity<CmmnCdDto.CmmnCdInfo> mergeInfoCmmnCd(@RequestBody @Valid final CmmnCdDto.CmmnCdUpdateReq req) {
|
|
|
CmmnCd data = this.cmmnCdService.mergeInfo(req);
|
|
|
@@ -113,7 +113,7 @@ public class CodeController {
|
|
|
return new ResponseEntity<>(null, HttpStatus.NOT_FOUND);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "소분류코드-정보삭제(TB_CMMN_CLSF_CD)", response = CmmnCdDto.CmmnCdInfo.class)
|
|
|
+ @ApiOperation(value = "소분류코드-정보삭제(TB_CMMN_CD)", response = CmmnCdDto.CmmnCdInfo.class)
|
|
|
@DeleteMapping(value = "/cmmn-cd/{id}/sub", produces = {"application/json; charset=utf8"})
|
|
|
public ResponseEntity<CmmnCdDto.CmmnCdInfo> deleteDataByIdCmmnCd(@PathVariable("id") String id, @PathVariable("id") String sub) {
|
|
|
CmmnCd obj = this.cmmnCdService.deleteById(id, sub);
|