|
|
@@ -1,8 +1,10 @@
|
|
|
package com.its.op.controller.its.rse;
|
|
|
|
|
|
+import com.its.op.dto.its.rse.TbRseSectDto;
|
|
|
import com.its.op.dto.its.rse.TbRseSectRltnLinkDto;
|
|
|
-import com.its.op.entity.its.rse.TbRseSectRltnLinkKey;
|
|
|
+import com.its.op.dto.its.vms.TbVmsRltnIfscDto;
|
|
|
import com.its.op.service.its.rse.TbRseSectRltnLinkService;
|
|
|
+import com.its.op.service.its.rse.TbRseSectService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
@@ -20,47 +22,74 @@ import java.util.List;
|
|
|
public class TbRseSectRltnLinkController {
|
|
|
|
|
|
private final TbRseSectRltnLinkService service;
|
|
|
+ private final TbRseSectService rseSectService;
|
|
|
|
|
|
- @ApiOperation(value = "RSE 구간 링크구성 정보 전체조회(TB_RSE_SECT_RLTN_LINK)", response = TbRseSectRltnLinkDto.class, responseContainer = "ArrayList")
|
|
|
+ @ApiOperation(value = "RSE 구간 링크구성 목록 조회(TB_RSE_SECT_RLTN_LINK)", response = TbRseSectDto.class)
|
|
|
+ @GetMapping(value = "/rse-sect", produces = {"application/json; charset=utf8"})
|
|
|
+ public List<TbRseSectDto> findVmsIfscAll() {
|
|
|
+ return this.rseSectService.findAll();
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "RSE 구간 링크구성 관계 전체조회(TB_VMS_IFSC_RLTN)", response = TbRseSectRltnLinkDto.class)
|
|
|
@GetMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
public List<TbRseSectRltnLinkDto> findAll() {
|
|
|
return this.service.findAll();
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "RSE 구간 링크구성 정보 개별조회(TB_RSE_SECT_RLTN_LINK)", response = TbRseSectRltnLinkDto.class)
|
|
|
+ @ApiOperation(value = "RSE 구간 링크구성 관계 개별조회(TB_RSE_SECT_RLTN_LINK)", response = TbVmsRltnIfscDto.class)
|
|
|
@GetMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbRseSectRltnLinkDto findById(@PathVariable final TbRseSectRltnLinkKey id) {
|
|
|
- return this.service.findById(id);
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "RSE 구간 링크구성 정보 정보변경(TB_RSE_SECT_RLTN_LINK)", response = TbRseSectRltnLinkDto.class)
|
|
|
- @PutMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbRseSectRltnLinkDto updateById(@PathVariable final TbRseSectRltnLinkKey id, @RequestBody @Valid final TbRseSectRltnLinkDto.TbRseSectRltnLinkUpdReq req) {
|
|
|
- return this.service.updateById(id, req);
|
|
|
+ public List<TbRseSectRltnLinkDto> findDataById(@PathVariable("id") final Long rseSectId) {
|
|
|
+ return this.service.findDataById(rseSectId);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "RSE 구간 링크구성 정보 정보변경/생성-목록(TB_RSE_SECT_RLTN_LINK)", response = TbRseSectRltnLinkDto.class, responseContainer = "ArrayList")
|
|
|
- @PostMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
- public List<TbRseSectRltnLinkDto> mergeInfoList(@RequestBody @Valid final List<TbRseSectRltnLinkDto.TbRseSectRltnLinkUpdReq> listReq) {
|
|
|
- return this.service.mergeInfoList(listReq);
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "RSE 구간 링크구성 정보 정보변경/생성-개별(TB_RSE_SECT_RLTN_LINK)", response = TbRseSectRltnLinkDto.class)
|
|
|
+ @ApiOperation(value = "RSE 구간 링크구성 관계 정보변경/생성-개별(TB_RSE_SECT_RLTN_LINK)", response = TbVmsRltnIfscDto.class)
|
|
|
@PostMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbRseSectRltnLinkDto mergeInfo(@PathVariable("id") TbRseSectRltnLinkKey id, @RequestBody @Valid final TbRseSectRltnLinkDto.TbRseSectRltnLinkUpdReq req) {
|
|
|
+ public TbRseSectRltnLinkDto.TbRseSectRltnLinkUpdReq mergeInfo(
|
|
|
+ @PathVariable("id") Long rseSectId, @RequestBody @Valid final TbRseSectRltnLinkDto.TbRseSectRltnLinkUpdReq req) {
|
|
|
return this.service.mergeInfo(req);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "RSE 구간 링크구성 정보 정보삭제-개별(TB_RSE_SECT_RLTN_LINK)", response = TbRseSectRltnLinkDto.class)
|
|
|
- @DeleteMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbRseSectRltnLinkDto deleteDataById(@PathVariable("id") TbRseSectRltnLinkKey id) {
|
|
|
- return this.service.deleteById(id);
|
|
|
- }
|
|
|
|
|
|
- @ApiOperation(value = "RSE 구간 링크구성 정보 정보삭제-목록(TB_RSE_SECT_RLTN_LINK)", response = TbRseSectRltnLinkDto.class, responseContainer = "ArrayList")
|
|
|
- @DeleteMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
- public List<TbRseSectRltnLinkDto> deleteDataByIds(@RequestBody @Valid final List<TbRseSectRltnLinkKey> ids) {
|
|
|
- return this.service.deleteByIds(ids);
|
|
|
- }
|
|
|
+// @ApiOperation(value = "RSE 구간 링크구성 정보 전체조회(TB_RSE_SECT_RLTN_LINK)", response = TbRseSectRltnLinkDto.class, responseContainer = "ArrayList")
|
|
|
+// @GetMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
+// public List<TbRseSectRltnLinkDto> findAll() {
|
|
|
+// return this.service.findAll();
|
|
|
+// }
|
|
|
+//
|
|
|
+// @ApiOperation(value = "RSE 구간 링크구성 정보 개별조회(TB_RSE_SECT_RLTN_LINK)", response = TbRseSectRltnLinkDto.class)
|
|
|
+// @GetMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
+// public TbRseSectRltnLinkDto findById(@PathVariable final TbRseSectRltnLinkKey id) {
|
|
|
+// return this.service.findById(id);
|
|
|
+// }
|
|
|
+//
|
|
|
+// @ApiOperation(value = "RSE 구간 링크구성 정보 정보변경(TB_RSE_SECT_RLTN_LINK)", response = TbRseSectRltnLinkDto.class)
|
|
|
+// @PutMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
+// public TbRseSectRltnLinkDto updateById(@PathVariable final TbRseSectRltnLinkKey id, @RequestBody @Valid final TbRseSectRltnLinkDto.TbRseSectRltnLinkUpdReq req) {
|
|
|
+// return this.service.updateById(id, req);
|
|
|
+// }
|
|
|
+//
|
|
|
+// @ApiOperation(value = "RSE 구간 링크구성 정보 정보변경/생성-목록(TB_RSE_SECT_RLTN_LINK)", response = TbRseSectRltnLinkDto.class, responseContainer = "ArrayList")
|
|
|
+// @PostMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
+// public List<TbRseSectRltnLinkDto> mergeInfoList(@RequestBody @Valid final List<TbRseSectRltnLinkDto.TbRseSectRltnLinkUpdReq> listReq) {
|
|
|
+// return this.service.mergeInfoList(listReq);
|
|
|
+// }
|
|
|
+//
|
|
|
+// @ApiOperation(value = "RSE 구간 링크구성 정보 정보변경/생성-개별(TB_RSE_SECT_RLTN_LINK)", response = TbRseSectRltnLinkDto.class)
|
|
|
+// @PostMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
+// public TbRseSectRltnLinkDto mergeInfo(@PathVariable("id") TbRseSectRltnLinkKey id, @RequestBody @Valid final TbRseSectRltnLinkDto.TbRseSectRltnLinkUpdReq req) {
|
|
|
+// return this.service.mergeInfo(req);
|
|
|
+// }
|
|
|
+//
|
|
|
+// @ApiOperation(value = "RSE 구간 링크구성 정보 정보삭제-개별(TB_RSE_SECT_RLTN_LINK)", response = TbRseSectRltnLinkDto.class)
|
|
|
+// @DeleteMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
+// public TbRseSectRltnLinkDto deleteDataById(@PathVariable("id") TbRseSectRltnLinkKey id) {
|
|
|
+// return this.service.deleteById(id);
|
|
|
+// }
|
|
|
+//
|
|
|
+// @ApiOperation(value = "RSE 구간 링크구성 정보 정보삭제-목록(TB_RSE_SECT_RLTN_LINK)", response = TbRseSectRltnLinkDto.class, responseContainer = "ArrayList")
|
|
|
+// @DeleteMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
+// public List<TbRseSectRltnLinkDto> deleteDataByIds(@RequestBody @Valid final List<TbRseSectRltnLinkKey> ids) {
|
|
|
+// return this.service.deleteByIds(ids);
|
|
|
+// }
|
|
|
|
|
|
}
|