|
|
@@ -6,9 +6,11 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
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 = "14.스마트교차로-0.공통-1.신호제어기-상태")
|
|
|
@@ -38,34 +40,4 @@ public class TbScSgnlIxrSttsController {
|
|
|
return this.service.findById(sgnlIxrNmbr);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "신호 교차로 상태 정보변경(TB_SC_SGNL_IXR_STTS)", response = TbScSgnlIxrSttsDto.class)
|
|
|
- @PutMapping(value = "/{sgnlIxrNmbr}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbScSgnlIxrSttsDto updateById(@PathVariable("sgnlIxrNmbr") final Integer sgnlIxrNmbr, @RequestBody @Valid final TbScSgnlIxrSttsDto.TbScSgnlIxrSttsUpdReq req) {
|
|
|
- return this.service.updateById(sgnlIxrNmbr, req);
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "신호 교차로 상태 정보변경/생성-목록(TB_SC_SGNL_IXR_STTS)", response = TbScSgnlIxrSttsDto.class, responseContainer = "ArrayList")
|
|
|
- @PostMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
- public List<TbScSgnlIxrSttsDto> mergeInfoList(@RequestBody @Valid final List<TbScSgnlIxrSttsDto.TbScSgnlIxrSttsUpdReq> listReq) {
|
|
|
- return this.service.mergeInfoList(listReq);
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "신호 교차로 상태 정보변경/생성-개별(TB_SC_SGNL_IXR_STTS)", response = TbScSgnlIxrSttsDto.class)
|
|
|
- @PostMapping(value = "/{sgnlIxrNmbr}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbScSgnlIxrSttsDto mergeInfo(@PathVariable("sgnlIxrNmbr") final Integer sgnlIxrNmbr, @RequestBody @Valid final TbScSgnlIxrSttsDto.TbScSgnlIxrSttsUpdReq req) {
|
|
|
- return this.service.mergeInfo(req);
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "신호 교차로 상태 정보삭제-개별(TB_SC_SGNL_IXR_STTS)", response = TbScSgnlIxrSttsDto.class)
|
|
|
- @DeleteMapping(value = "/{sgnlIxrNmbr}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbScSgnlIxrSttsDto deleteDataById(@PathVariable("sgnlIxrNmbr") final Integer sgnlIxrNmbr) {
|
|
|
- return this.service.deleteById(sgnlIxrNmbr);
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "신호 교차로 상태 정보삭제-목록(TB_SC_SGNL_IXR_STTS)", response = TbScSgnlIxrSttsDto.class, responseContainer = "ArrayList")
|
|
|
- @DeleteMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
- public List<TbScSgnlIxrSttsDto> deleteDataByIds(@RequestBody @Valid final List<Integer> ids) {
|
|
|
- return this.service.deleteByIds(ids);
|
|
|
- }
|
|
|
-
|
|
|
}
|