|
@@ -1,10 +1,12 @@
|
|
|
package com.its.op.controller.its.rse;
|
|
|
|
|
|
import com.its.op.dto.its.rse.TbRseCtlrCnncHsDto;
|
|
|
+import com.its.op.dto.its.rse.TbRseCtlrSttsHsDto;
|
|
|
import com.its.op.entity.its.rse.TbRseCtlrCnncHsKey;
|
|
|
import com.its.op.service.its.rse.TbRseCtlrCnncHsService;
|
|
|
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.*;
|
|
@@ -21,10 +23,23 @@ public class TbRseCtlrCnncHsController {
|
|
|
|
|
|
private final TbRseCtlrCnncHsService service;
|
|
|
|
|
|
- @ApiOperation(value = "RSE 접속로그 이력 전체조회(TB_RSE_CTLR_CNNC_HS)", response = TbRseCtlrCnncHsDto.class, responseContainer = "ArrayList")
|
|
|
+// @ApiOperation(value = "RSE 접속로그 이력 전체조회(TB_RSE_CTLR_CNNC_HS)", response = TbRseCtlrCnncHsDto.class, responseContainer = "ArrayList")
|
|
|
+// @GetMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
+// public List<TbRseCtlrCnncHsDto> findAll() {
|
|
|
+// return this.service.findAll();
|
|
|
+// }
|
|
|
+
|
|
|
+ @ApiOperation(value = "RSE 접속로그 이력조회(TB_RSE_CTLR_STTS_HS)", response = TbRseCtlrCnncHsDto.class, responseContainer = "ArrayList")
|
|
|
@GetMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
- public List<TbRseCtlrCnncHsDto> findAll() {
|
|
|
- return this.service.findAll();
|
|
|
+ public List<TbRseCtlrCnncHsDto> findAllByDateRange(
|
|
|
+ @ApiParam(name = "FROM_DT", value = "조회시작시각(YYYYMMDDHH24MI00)", example = "20210112152000", required = true)
|
|
|
+ @RequestParam String FROM_DT,
|
|
|
+ @ApiParam(name = "TO_DT", value = "조회종료시각(YYYYMMDDHH24MI59)", example = "20221112152000", required = true)
|
|
|
+ @RequestParam String TO_DT,
|
|
|
+ @ApiParam(name = "id", value = "RSE 관리번호 목록", example = "[00000001,00000002]", required = true)
|
|
|
+ @RequestParam List<Long> id
|
|
|
+ ) {
|
|
|
+ return this.service.findAllByDateRange(FROM_DT, TO_DT, id);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "RSE 접속로그 이력 개별조회(TB_RSE_CTLR_CNNC_HS)", response = TbRseCtlrCnncHsDto.class)
|
|
@@ -33,34 +48,5 @@ public class TbRseCtlrCnncHsController {
|
|
|
return this.service.findById(id);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "RSE 접속로그 이력 정보변경(TB_RSE_CTLR_CNNC_HS)", response = TbRseCtlrCnncHsDto.class)
|
|
|
- @PutMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbRseCtlrCnncHsDto updateById(@PathVariable final TbRseCtlrCnncHsKey id, @RequestBody @Valid final TbRseCtlrCnncHsDto.TbRseCtlrCnncHsUpdReq req) {
|
|
|
- return this.service.updateById(id, req);
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "RSE 접속로그 이력 정보변경/생성-목록(TB_RSE_CTLR_CNNC_HS)", response = TbRseCtlrCnncHsDto.class, responseContainer = "ArrayList")
|
|
|
- @PostMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
- public List<TbRseCtlrCnncHsDto> mergeInfoList(@RequestBody @Valid final List<TbRseCtlrCnncHsDto.TbRseCtlrCnncHsUpdReq> listReq) {
|
|
|
- return this.service.mergeInfoList(listReq);
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "RSE 접속로그 이력 정보변경/생성-개별(TB_RSE_CTLR_CNNC_HS)", response = TbRseCtlrCnncHsDto.class)
|
|
|
- @PostMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbRseCtlrCnncHsDto mergeInfo(@PathVariable("id") TbRseCtlrCnncHsKey id, @RequestBody @Valid final TbRseCtlrCnncHsDto.TbRseCtlrCnncHsUpdReq req) {
|
|
|
- return this.service.mergeInfo(req);
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "RSE 접속로그 이력 정보삭제-개별(TB_RSE_CTLR_CNNC_HS)", response = TbRseCtlrCnncHsDto.class)
|
|
|
- @DeleteMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbRseCtlrCnncHsDto deleteDataById(@PathVariable("id") TbRseCtlrCnncHsKey id) {
|
|
|
- return this.service.deleteById(id);
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "RSE 접속로그 이력 정보삭제-목록(TB_RSE_CTLR_CNNC_HS)", response = TbRseCtlrCnncHsDto.class, responseContainer = "ArrayList")
|
|
|
- @DeleteMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
- public List<TbRseCtlrCnncHsDto> deleteDataByIds(@RequestBody @Valid final List<TbRseCtlrCnncHsKey> ids) {
|
|
|
- return this.service.deleteByIds(ids);
|
|
|
- }
|
|
|
|
|
|
}
|