|
@@ -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.RSE-1.RSE 관리-RSE 제어 이력")
|
|
@@ -28,38 +30,8 @@ public class TbRseCtrlHsController {
|
|
|
|
|
|
@ApiOperation(value = "RSE 제어 이력 개별조회(TB_RSE_CTRL_HS)", response = TbRseCtrlHsDto.class)
|
|
|
@GetMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbRseCtrlHsDto findById(@PathVariable final TbRseCtrlHsKey id) {
|
|
|
+ public TbRseCtrlHsDto findById(@PathVariable final Long id) {
|
|
|
return this.service.findById(id);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "RSE 제어 이력 정보변경(TB_RSE_CTRL_HS)", response = TbRseCtrlHsDto.class)
|
|
|
- @PutMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbRseCtrlHsDto updateById(@PathVariable final TbRseCtrlHsKey id, @RequestBody @Valid final TbRseCtrlHsDto.TbRseCtrlHsUpdReq req) {
|
|
|
- return this.service.updateById(id, req);
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "RSE 제어 이력 정보변경/생성-목록(TB_RSE_CTRL_HS)", response = TbRseCtrlHsDto.class, responseContainer = "ArrayList")
|
|
|
- @PostMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
- public List<TbRseCtrlHsDto> mergeInfoList(@RequestBody @Valid final List<TbRseCtrlHsDto.TbRseCtrlHsUpdReq> listReq) {
|
|
|
- return this.service.mergeInfoList(listReq);
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "RSE 제어 이력 정보변경/생성-개별(TB_RSE_CTRL_HS)", response = TbRseCtrlHsDto.class)
|
|
|
- @PostMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbRseCtrlHsDto mergeInfo(@PathVariable("id") TbRseCtrlHsKey id, @RequestBody @Valid final TbRseCtrlHsDto.TbRseCtrlHsUpdReq req) {
|
|
|
- return this.service.mergeInfo(req);
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "RSE 제어 이력 정보삭제-개별(TB_RSE_CTRL_HS)", response = TbRseCtrlHsDto.class)
|
|
|
- @DeleteMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbRseCtrlHsDto deleteDataById(@PathVariable("id") TbRseCtrlHsKey id) {
|
|
|
- return this.service.deleteById(id);
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "RSE 제어 이력 정보삭제-목록(TB_RSE_CTRL_HS)", response = TbRseCtrlHsDto.class, responseContainer = "ArrayList")
|
|
|
- @DeleteMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
- public List<TbRseCtrlHsDto> deleteDataByIds(@RequestBody @Valid final List<TbRseCtrlHsKey> ids) {
|
|
|
- return this.service.deleteByIds(ids);
|
|
|
- }
|
|
|
-
|
|
|
}
|