|
@@ -72,12 +72,35 @@ public class TbIncdOcrrCodeController {
|
|
|
return service.findAllByCmmnClsfCd(CodeManager.INCD_CODE_WETU);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "돌발상황 통제 코드", response = IncdCodeDto.class, responseContainer = "ArrayList")
|
|
|
+ @GetMapping(value = "/cntu", produces = {"application/json; charset=utf8"})
|
|
|
+ public List<IncdCodeDto> findAllCNTU() {
|
|
|
+ return service.findAllByCmmnClsfCd(CodeManager.INCD_CODE_CNTU);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "돌발상황 재난 유형 코드", response = IncdCodeDto.class, responseContainer = "ArrayList")
|
|
|
+ @GetMapping(value = "/catu", produces = {"application/json; charset=utf8"})
|
|
|
+ public List<IncdCodeDto> findAllCATU() {
|
|
|
+ return service.findAllByCmmnClsfCd(CodeManager.INCD_CODE_CATU);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "돌발상황 기타 유형 코드", response = IncdCodeDto.class, responseContainer = "ArrayList")
|
|
|
+ @GetMapping(value = "/etc/{subCode}", produces = {"application/json; charset=utf8"})
|
|
|
+ public List<IncdCodeDto> findAllETC(
|
|
|
+ @ApiParam(name = "subCode", value = "유형 분류 코드", example = "7", required = true)
|
|
|
+ @PathVariable String subCode) {
|
|
|
+ return service.findAllByCmmnClsfCd(subCode);
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "돌발상황 유형별 세부 코드", response = IncdCodeDto.class, responseContainer = "ArrayList")
|
|
|
@GetMapping(value = "/idtu/{id}", produces = {"application/json; charset=utf8"})
|
|
|
public List<IncdCodeDto> findAllIDTUSub(
|
|
|
- @ApiParam(name = "id", value = "돌발상황 유형 분류 코드(1,2,3,4)", example = "1", required = true)
|
|
|
+ @ApiParam(name = "id", value = "돌발상황 유형 분류 코드(1,2,3,4,5)", example = "1", required = true)
|
|
|
@PathVariable String id
|
|
|
) {
|
|
|
+ /**
|
|
|
+ * 20230508: 공단 돌발 코드 신규 추가됨
|
|
|
+ */
|
|
|
if (("1").equals(id)) {
|
|
|
return findAllACTU();
|
|
|
}
|
|
@@ -87,9 +110,18 @@ public class TbIncdOcrrCodeController {
|
|
|
else if (("3").equals(id)) {
|
|
|
return findAllEVTU();
|
|
|
}
|
|
|
- //else //if (("4").equals(id)) {
|
|
|
+ else if (("4").equals(id)) {
|
|
|
return findAllWETU();
|
|
|
- //}
|
|
|
+ }
|
|
|
+ else if (("5").equals(id)) {
|
|
|
+ return findAllCNTU();
|
|
|
+ }
|
|
|
+ else if (("6").equals(id)) {
|
|
|
+ return findAllCATU();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return findAllETC(id);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "돌발상황 심각도 코드", response = IncdCodeDto.class, responseContainer = "ArrayList")
|