|
@@ -1,15 +1,17 @@
|
|
|
package com.its.api.its.controller.vms;
|
|
|
|
|
|
import com.its.api.its.model.dto.vms.TbVmsTrfcInfrDsplSchDto;
|
|
|
-import com.its.api.its.model.entity.vms.TbVmsTrfcInfrDsplSchKey;
|
|
|
-import com.its.api.its.service.vms.TbVmsTrfcInfrDsplSchDefaultService;
|
|
|
+import com.its.api.its.service.vms.TbVmsTrfcInfrDsplSchService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import io.swagger.annotations.ApiParam;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
-import javax.validation.Valid;
|
|
|
import java.util.List;
|
|
|
|
|
|
@Api(tags = "12.VMS-3.스케줄관리-1.자동 스케줄 관리")
|
|
@@ -19,48 +21,89 @@ import java.util.List;
|
|
|
@RequestMapping("/api/vms/schedule/auto")
|
|
|
public class TbVmsTrfcInfrDsplSchAutoController {
|
|
|
|
|
|
- private final TbVmsTrfcInfrDsplSchDefaultService service;
|
|
|
+ private final TbVmsTrfcInfrDsplSchService service;
|
|
|
|
|
|
- @ApiOperation(value = "VMS 교통 정보 표출 일정 전체조회(TB_VMS_TRFC_INFR_DSPL_SCH)", response = TbVmsTrfcInfrDsplSchDto.class, responseContainer = "ArrayList")
|
|
|
- @GetMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
- public List<TbVmsTrfcInfrDsplSchDto> findAll() {
|
|
|
- return service.findAll();
|
|
|
+ /**
|
|
|
+ * VMS 제어기 관리 번호로 폼 표출 스케줄 목록 조회
|
|
|
+ * @param id
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "VMS 폼 스케줄 목록 조회(TB_VMS_TRFC_INFR_DSPL_SCH)", response = TbVmsTrfcInfrDsplSchDto.class, responseContainer = "ArrayList")
|
|
|
+ @GetMapping(value = "/list/{id}", produces = {"application/json; charset=utf8"})
|
|
|
+ public List<TbVmsTrfcInfrDsplSchDto> findAllVmsDsplSchedule(
|
|
|
+ @ApiParam(name = "id", value = "VMS 제어기 관리번호", example = "10005", required = true)
|
|
|
+ @PathVariable final Long id
|
|
|
+ ) {
|
|
|
+ return this.service.findAllVmsDsplSchedule(id);
|
|
|
+ }
|
|
|
+ // 교통정보
|
|
|
+ @ApiOperation(value = "VMS 폼 정보 조회-교통정보(TB_VMS_TRFC_INFR_DSPL_SCH)", response = TbVmsTrfcInfrDsplSchDto.class, responseContainer = "ArrayList")
|
|
|
+ @GetMapping(value = "/list/traffic/{id}", produces = {"application/json; charset=utf8"})
|
|
|
+ public List<TbVmsTrfcInfrDsplSchDto> findAllTrafficByVmsType(
|
|
|
+ @ApiParam(name = "id", value = "VMS 제어기 관리번호", example = "10005", required = true)
|
|
|
+ @PathVariable final Long id
|
|
|
+ ) {
|
|
|
+ return this.service.findAllTraffic(id);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "VMS 교통 정보 표출 일정 개별조회(TB_VMS_TRFC_INFR_DSPL_SCH)", response = TbVmsTrfcInfrDsplSchDto.class)
|
|
|
- @GetMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbVmsTrfcInfrDsplSchDto findById(@PathVariable final TbVmsTrfcInfrDsplSchKey id) {
|
|
|
- return this.service.findById(id);
|
|
|
+ // 정체
|
|
|
+ @ApiOperation(value = "VMS 폼 정보 조회-정체(TB_VMS_TRFC_INFR_DSPL_SCH)", response = TbVmsTrfcInfrDsplSchDto.class, responseContainer = "ArrayList")
|
|
|
+ @GetMapping(value = "/list/congest/{id}", produces = {"application/json; charset=utf8"})
|
|
|
+ public List<TbVmsTrfcInfrDsplSchDto> findAllCongestByVmsType(
|
|
|
+ @ApiParam(name = "id", value = "VMS 제어기 관리번호", example = "10005", required = true)
|
|
|
+ @PathVariable final Long id
|
|
|
+ ) {
|
|
|
+ return this.service.findAllCongest(id);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "VMS 교통 정보 표출 일정 정보변경(TB_VMS_TRFC_INFR_DSPL_SCH)", response = TbVmsTrfcInfrDsplSchDto.class)
|
|
|
- @PutMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbVmsTrfcInfrDsplSchDto updateById(@PathVariable final TbVmsTrfcInfrDsplSchKey id, @RequestBody @Valid final TbVmsTrfcInfrDsplSchDto.TbVmsTrfcInfrDsplSchUpdReq req) {
|
|
|
- return this.service.updateById(id, req);
|
|
|
+ // 돌발
|
|
|
+ @ApiOperation(value = "VMS 폼 정보 조회-돌발(TB_VMS_TRFC_INFR_DSPL_SCH)", response = TbVmsTrfcInfrDsplSchDto.class, responseContainer = "ArrayList")
|
|
|
+ @GetMapping(value = "/list/incident/{id}", produces = {"application/json; charset=utf8"})
|
|
|
+ public List<TbVmsTrfcInfrDsplSchDto> findAllIncidentByVmsType(
|
|
|
+ @ApiParam(name = "id", value = "VMS 제어기 관리번호", example = "10005", required = true)
|
|
|
+ @PathVariable final Long id
|
|
|
+ ) {
|
|
|
+ return this.service.findAllIncident(id);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "VMS 교통 정보 표출 일정 정보변경/생성-목록(TB_VMS_TRFC_INFR_DSPL_SCH)", response = TbVmsTrfcInfrDsplSchDto.class, responseContainer = "ArrayList")
|
|
|
- @PostMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
- public List<TbVmsTrfcInfrDsplSchDto> mergeInfoList(@RequestBody @Valid final List<TbVmsTrfcInfrDsplSchDto.TbVmsTrfcInfrDsplSchUpdReq> listReq) {
|
|
|
- return this.service.mergeInfoList(listReq);
|
|
|
+ // 공사/행사
|
|
|
+ @ApiOperation(value = "VMS 폼 정보 조회-공사/행사(TB_VMS_TRFC_INFR_DSPL_SCH)", response = TbVmsTrfcInfrDsplSchDto.class, responseContainer = "ArrayList")
|
|
|
+ @GetMapping(value = "/list/event/{id}", produces = {"application/json; charset=utf8"})
|
|
|
+ public List<TbVmsTrfcInfrDsplSchDto> findAllEventByVmsType(
|
|
|
+ @ApiParam(name = "id", value = "VMS 제어기 관리번호", example = "10005", required = true)
|
|
|
+ @PathVariable final Long id
|
|
|
+ ) {
|
|
|
+ return this.service.findAllEvent(id);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "VMS 교통 정보 표출 일정 정보변경/생성-개별(TB_VMS_TRFC_INFR_DSPL_SCH)", response = TbVmsTrfcInfrDsplSchDto.class)
|
|
|
- @PostMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbVmsTrfcInfrDsplSchDto mergeInfo(@PathVariable("id") TbVmsTrfcInfrDsplSchKey id, @RequestBody @Valid final TbVmsTrfcInfrDsplSchDto.TbVmsTrfcInfrDsplSchUpdReq req) {
|
|
|
- return this.service.mergeInfo(req);
|
|
|
+ // 홍보
|
|
|
+ @ApiOperation(value = "VMS 폼 정보 조회-홍보(TB_VMS_TRFC_INFR_DSPL_SCH)", response = TbVmsTrfcInfrDsplSchDto.class, responseContainer = "ArrayList")
|
|
|
+ @GetMapping(value = "/list/notice/{id}", produces = {"application/json; charset=utf8"})
|
|
|
+ public List<TbVmsTrfcInfrDsplSchDto> findAllHongboByVmsType(
|
|
|
+ @ApiParam(name = "id", value = "VMS 제어기 관리번호", example = "10005", required = true)
|
|
|
+ @PathVariable final Long id
|
|
|
+ ) {
|
|
|
+ return this.service.findAllHongbo(id);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "VMS 교통 정보 표출 일정 정보삭제-개별(TB_VMS_TRFC_INFR_DSPL_SCH)", response = TbVmsTrfcInfrDsplSchDto.class)
|
|
|
- @DeleteMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbVmsTrfcInfrDsplSchDto deleteDataById(@PathVariable("id") TbVmsTrfcInfrDsplSchKey id) {
|
|
|
- return this.service.deleteById(id);
|
|
|
+ // 우회도로
|
|
|
+ @ApiOperation(value = "VMS 폼 정보 조회-우회도로(TB_VMS_TRFC_INFR_DSPL_SCH)", response = TbVmsTrfcInfrDsplSchDto.class, responseContainer = "ArrayList")
|
|
|
+ @GetMapping(value = "/list/detour/{id}", produces = {"application/json; charset=utf8"})
|
|
|
+ public List<TbVmsTrfcInfrDsplSchDto> findAllDetourByVmsType(
|
|
|
+ @ApiParam(name = "id", value = "VMS 제어기 관리번호", example = "10005", required = true)
|
|
|
+ @PathVariable final Long id
|
|
|
+ ) {
|
|
|
+ return this.service.findAllDetour(id);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "VMS 교통 정보 표출 일정 정보삭제-목록(TB_VMS_TRFC_INFR_DSPL_SCH)", response = TbVmsTrfcInfrDsplSchDto.class, responseContainer = "ArrayList")
|
|
|
- @DeleteMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
- public List<TbVmsTrfcInfrDsplSchDto> deleteDataByIds(@RequestBody @Valid final List<TbVmsTrfcInfrDsplSchKey> ids) {
|
|
|
- return this.service.deleteByIds(ids);
|
|
|
+ // 재난안전
|
|
|
+ @ApiOperation(value = "VMS 폼 정보 조회-재난안전(TB_VMS_TRFC_INFR_DSPL_SCH)", response = TbVmsTrfcInfrDsplSchDto.class, responseContainer = "ArrayList")
|
|
|
+ @GetMapping(value = "/list/safety/{id}", produces = {"application/json; charset=utf8"})
|
|
|
+ public List<TbVmsTrfcInfrDsplSchDto> findAllSafetyByVmsType(
|
|
|
+ @ApiParam(name = "id", value = "VMS 제어기 관리번호", example = "10005", required = true)
|
|
|
+ @PathVariable final Long id
|
|
|
+ ) {
|
|
|
+ return this.service.findAllSafety(id);
|
|
|
}
|
|
|
|
|
|
}
|