|
@@ -1,11 +1,13 @@
|
|
|
package com.its.api.its.controller.vms;
|
|
package com.its.api.its.controller.vms;
|
|
|
|
|
|
|
|
|
|
+import com.its.api.its.model.dto.common.NewIdIntegerDto;
|
|
|
|
|
+import com.its.api.its.model.dto.vms.TbVmsFormDetlDto;
|
|
|
import com.its.api.its.model.dto.vms.TbVmsFormDto;
|
|
import com.its.api.its.model.dto.vms.TbVmsFormDto;
|
|
|
import com.its.api.its.model.dto.vms.TbVmsFormObjectDetlDto;
|
|
import com.its.api.its.model.dto.vms.TbVmsFormObjectDetlDto;
|
|
|
-import com.its.api.its.model.dto.common.NewIdIntegerDto;
|
|
|
|
|
import com.its.api.its.service.vms.TbVmsFormService;
|
|
import com.its.api.its.service.vms.TbVmsFormService;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
+import io.swagger.annotations.ApiParam;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -28,6 +30,15 @@ public class TbVmsFormController {
|
|
|
return service.findAll();
|
|
return service.findAll();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "VMS FORM 유형별 조회(TB_VMS_FORM)", response = TbVmsFormDto.class, responseContainer = "ArrayList")
|
|
|
|
|
+ @GetMapping(value = "/form/{type}", produces = {"application/json; charset=utf8"})
|
|
|
|
|
+ public List<TbVmsFormDto> findAllByType(
|
|
|
|
|
+ @ApiParam(name = "type", value = "VMS 크기유형", example = "VMP2", required = true)
|
|
|
|
|
+ @PathVariable final String type
|
|
|
|
|
+ ) {
|
|
|
|
|
+ return service.findAllByType(type);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@ApiOperation(value = "VMS FORM 개별조회(TB_VMS_FORM)", response = TbVmsFormDto.class)
|
|
@ApiOperation(value = "VMS FORM 개별조회(TB_VMS_FORM)", response = TbVmsFormDto.class)
|
|
|
@GetMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
@GetMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
public TbVmsFormDto findById(@PathVariable final Integer id) {
|
|
public TbVmsFormDto findById(@PathVariable final Integer id) {
|
|
@@ -39,6 +50,11 @@ public class TbVmsFormController {
|
|
|
public List<TbVmsFormObjectDetlDto> findByVmsFormObject(@PathVariable final Integer id) {
|
|
public List<TbVmsFormObjectDetlDto> findByVmsFormObject(@PathVariable final Integer id) {
|
|
|
return this.service.findByVmsFormObject(id);
|
|
return this.service.findByVmsFormObject(id);
|
|
|
}
|
|
}
|
|
|
|
|
+ @ApiOperation(value = "VMS FORM 객체 목록 상세 조회(TB_VMS_FORM)", response = TbVmsFormDetlDto.class, responseContainer = "ArrayList")
|
|
|
|
|
+ @GetMapping(value = "/form/detail/{id}", produces = {"application/json; charset=utf8"})
|
|
|
|
|
+ public TbVmsFormDetlDto findByVmsFormObjectDetail(@PathVariable final Integer id) {
|
|
|
|
|
+ return this.service.findByVmsFormObjectDetail(id);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
@ApiOperation(value = "VMS FORM 정보변경(TB_VMS_FORM)", response = TbVmsFormDto.class)
|
|
@ApiOperation(value = "VMS FORM 정보변경(TB_VMS_FORM)", response = TbVmsFormDto.class)
|
|
|
@PutMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
@PutMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
@@ -46,11 +62,11 @@ public class TbVmsFormController {
|
|
|
return this.service.updateById(id, req);
|
|
return this.service.updateById(id, req);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation(value = "VMS FORM 정보변경/생성-목록(TB_VMS_FORM)", response = TbVmsFormDto.class, responseContainer = "ArrayList")
|
|
|
|
|
- @PostMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
|
|
- public List<TbVmsFormDto> mergeInfoList(@RequestBody @Valid final List<TbVmsFormDto.TbVmsFormUpdReq> listReq) {
|
|
|
|
|
- return this.service.mergeInfoList(listReq);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// @ApiOperation(value = "VMS FORM 정보변경/생성-목록(TB_VMS_FORM)", response = TbVmsFormDto.class, responseContainer = "ArrayList")
|
|
|
|
|
+// @PostMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
|
|
+// public List<TbVmsFormDto> mergeInfoList(@RequestBody @Valid final List<TbVmsFormDto.TbVmsFormUpdReq> listReq) {
|
|
|
|
|
+// return this.service.mergeInfoList(listReq);
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
@ApiOperation(value = "VMS FORM 정보변경/생성-개별(TB_VMS_FORM)", response = TbVmsFormDto.class)
|
|
@ApiOperation(value = "VMS FORM 정보변경/생성-개별(TB_VMS_FORM)", response = TbVmsFormDto.class)
|
|
|
@PostMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
@PostMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
@@ -64,11 +80,11 @@ public class TbVmsFormController {
|
|
|
return this.service.deleteById(id);
|
|
return this.service.deleteById(id);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation(value = "VMS FORM 정보삭제-목록(TB_VMS_FORM)", response = TbVmsFormDto.class, responseContainer = "ArrayList")
|
|
|
|
|
- @DeleteMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
|
|
- public List<TbVmsFormDto> deleteDataByIds(@RequestBody @Valid final List<Integer> ids) {
|
|
|
|
|
- return this.service.deleteByIds(ids);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// @ApiOperation(value = "VMS FORM 정보삭제-목록(TB_VMS_FORM)", response = TbVmsFormDto.class, responseContainer = "ArrayList")
|
|
|
|
|
+// @DeleteMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
|
|
+// public List<TbVmsFormDto> deleteDataByIds(@RequestBody @Valid final List<Integer> ids) {
|
|
|
|
|
+// return this.service.deleteByIds(ids);
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
@ApiOperation(value = "신규 VMS FORM ID 조회(TB_VMS_FORM)", response = NewIdIntegerDto.class)
|
|
@ApiOperation(value = "신규 VMS FORM ID 조회(TB_VMS_FORM)", response = NewIdIntegerDto.class)
|
|
|
@GetMapping(value = "/new-id", produces = {"application/json; charset=utf8"})
|
|
@GetMapping(value = "/new-id", produces = {"application/json; charset=utf8"})
|