|
@@ -1,6 +1,7 @@
|
|
|
package com.its.op.controller.its.facility;
|
|
|
|
|
|
import com.its.op.dto.its.common.NewIdStringDto;
|
|
|
+import com.its.op.dto.its.common.UsageCountDto;
|
|
|
import com.its.op.dto.its.facility.*;
|
|
|
import com.its.op.service.its.facility.TbFcltFailService;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -57,14 +58,14 @@ public class TbFcltFailController {
|
|
|
return this.service.findAllList();
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "시설물 장애 현황 조회", response = TbFcltFailDto.class, responseContainer = "ArrayList")
|
|
|
+ @ApiOperation(value = "시설물 장애 현황 조회(완료항목 포함)", response = TbFcltFailDto.class, responseContainer = "ArrayList")
|
|
|
@GetMapping(value = "/list/all/{fromDay}/{toDay}", produces = {"application/json; charset=utf8"})
|
|
|
public List<TbFcltFailDto> findAllListByDate(@PathVariable("fromDay") final String fromDay,
|
|
|
@PathVariable("toDay") final String toDay) {
|
|
|
return this.service.findAllListByDate(true, fromDay, toDay);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "시설물 장애 관리 목록 조회", response = TbFcltFailDto.class, responseContainer = "ArrayList")
|
|
|
+ @ApiOperation(value = "시설물 장애 관리 목록 조회(완료항목제외)", response = TbFcltFailDto.class, responseContainer = "ArrayList")
|
|
|
@GetMapping(value = "/list/mng/{fromDay}/{toDay}", produces = {"application/json; charset=utf8"})
|
|
|
public List<TbFcltFailDto> findRegListByDate(@PathVariable("fromDay") final String fromDay,
|
|
|
@PathVariable("toDay") final String toDay) {
|
|
@@ -83,6 +84,12 @@ public class TbFcltFailController {
|
|
|
return this.service.mergeInfo(req);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "조치내역 존재 여부 조회", response = UsageCountDto.class)
|
|
|
+ @GetMapping(value = "/usage/{failNo}", produces = {"application/json; charset=utf8"})
|
|
|
+ public UsageCountDto findUsageId(@PathVariable("failNo") final String failNo) {
|
|
|
+ return this.service.findUsageId(failNo);
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "시설물 장애 발생 정보 정보삭제-개별(TB_FCLT_FAIL)", response = TbFcltFailDto.class)
|
|
|
@DeleteMapping(value = "/{failNo}", produces = {"application/json; charset=utf8"})
|
|
|
public TbFcltFailDto deleteDataById(@PathVariable("failNo") final String failNo) {
|