|
@@ -36,25 +36,26 @@ public class TbFcltFailActController {
|
|
|
|
|
|
@ApiOperation(value = "시설물 장애 발생 조치 정보 목록조회(TB_FCLT_FAIL_ACT)", response = TbFcltFailActDto.class)
|
|
|
@GetMapping(value = "/{failNo}", produces = {"application/json; charset=utf8"})
|
|
|
- public List<TbFcltFailActDto> findActListByFailNo(@PathVariable("failNo") final Long failNo) {
|
|
|
+ public List<TbFcltFailActDto> findActListByFailNo(@PathVariable("failNo") final String failNo) {
|
|
|
return this.service.findActListByFailNo(failNo);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "시설물 장애 발생 조치 정보 정보변경/생성-개별(TB_FCLT_FAIL_ACT)", response = TbFcltFailActDto.class)
|
|
|
- @PostMapping(value = "/{key}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbFcltFailActDto mergeInfo(@PathVariable("key") final TbFcltFailActKey key, @RequestBody @Valid final TbFcltFailActDto.TbFcltFailActUpdReq req) {
|
|
|
+ @PostMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
+ public TbFcltFailActDto mergeInfo(@RequestBody @Valid final TbFcltFailActDto.TbFcltFailActUpdReq req) {
|
|
|
return this.service.mergeInfo(req);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "시설물 장애 발생 조치 정보 정보삭제-개별(TB_FCLT_FAIL_ACT)", response = TbFcltFailActDto.class)
|
|
|
- @DeleteMapping(value = "/{failNo}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbFcltFailActDto deleteDataById(@PathVariable("failNo") final TbFcltFailActKey failNo) {
|
|
|
- return this.service.deleteById(failNo);
|
|
|
+ @DeleteMapping(value = "/{failNo}/{actSeq}", produces = {"application/json; charset=utf8"})
|
|
|
+ public TbFcltFailActDto deleteDataById(@PathVariable("failNo") final String failNo, @PathVariable("actSeq") final Integer actSeq) {
|
|
|
+ TbFcltFailActKey key = new TbFcltFailActKey(failNo, actSeq);
|
|
|
+ return this.service.deleteById(key);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "신규 ACT SEQ 조회", response = NewIdLongDto.class)
|
|
|
@GetMapping(value = "/new-id/act-eeq/{failNo}", produces = {"application/json; charset=utf8"})
|
|
|
- public NewIdLongDto getNewActSeq(@PathVariable("failNo") final Long failNo) {
|
|
|
+ public NewIdLongDto getNewActSeq(@PathVariable("failNo") final String failNo) {
|
|
|
return this.service.getNewActSeq(failNo);
|
|
|
}
|
|
|
|