refactor: 가대상세조회 api 응답 구조 변경에 따른 대응 수정
This commit is contained in:
parent
6cd692b544
commit
6bbd4fcb62
@ -51,7 +51,7 @@ public interface MasterService {
|
||||
@RequestParam(required = false) Integer roofPitch);
|
||||
|
||||
// 가대 상세 조회
|
||||
@GetMapping("/trestle/detail")
|
||||
@GetMapping(value = "/trestle/detail", consumes = "application/json")
|
||||
public ApiResponse<ApiTrestleDetailResponse> getTrestleDetailList(
|
||||
@RequestParam String moduleTpCd,
|
||||
@RequestParam String roofMatlCd,
|
||||
|
||||
@ -13,21 +13,17 @@ public class ApiTrestleDetailModuleResponse {
|
||||
private String moduleTpCd;
|
||||
|
||||
@Schema(description = "장경")
|
||||
private double longAxis;
|
||||
private Double longAxis;
|
||||
|
||||
@Schema(description = "단경")
|
||||
private double shortAxis;
|
||||
private Double shortAxis;
|
||||
|
||||
@Schema(description = "두께")
|
||||
private double thickness;
|
||||
private Double thickness;
|
||||
|
||||
@Schema(description = "색상")
|
||||
private String color;
|
||||
|
||||
@Schema(description = "모듈최대단수")
|
||||
private Integer moduleMaxRows;
|
||||
|
||||
@Schema(description = "순번")
|
||||
private Integer priority;
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,35 @@
|
||||
package com.interplug.qcast.biz.master.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.util.List;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
@Schema(description = "Api 가대 상세 랙 아이템 응답 객체")
|
||||
public class ApiTrestleDetailRackItemResponse {
|
||||
|
||||
@Schema(description = "아이템ID")
|
||||
private String itemId;
|
||||
|
||||
@Schema(description = "랙단수코드")
|
||||
private String rackRowsCd;
|
||||
|
||||
@Schema(description = "랙길이")
|
||||
private Double rackLen;
|
||||
|
||||
@Schema(description = "스마트랙여부")
|
||||
private String smartRackYn;
|
||||
|
||||
@Schema(description = "랙지지금구수")
|
||||
private Integer supFitQty;
|
||||
|
||||
@Schema(description = "랙지지금구간격(랙양끝기준)")
|
||||
private Double supFitIntvlPct;
|
||||
|
||||
@Schema(description = "Api 가대 상세 스마트랙 응답 객체")
|
||||
private List<ApiTrestleDetailSmartRackResponse> smartRack;
|
||||
}
|
||||
@ -1,21 +1,38 @@
|
||||
package com.interplug.qcast.biz.master.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.util.List;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
@Schema(description = "Api 가대 상세 랙 조회 응답 객체")
|
||||
public class ApiTrestleDetailRackResponse {
|
||||
|
||||
@Schema(description = "모듈타입코드")
|
||||
private String moduleTpCd;
|
||||
|
||||
@Schema(description = "모듈총단수")
|
||||
private Integer moduleRows;
|
||||
|
||||
@Schema(description = "랙단수코드")
|
||||
private String rackRowsCds;
|
||||
@Schema(description = "모듈1단수")
|
||||
private String moduleTpRows1; // private Integer moduleTpRows1;
|
||||
|
||||
@Schema(description = "간격")
|
||||
private String intvls;
|
||||
@Schema(description = "모듈2단수")
|
||||
private String moduleTpRows2; // private Integer moduleTpRows2;
|
||||
|
||||
@Schema(description = "모듈3단수")
|
||||
private String moduleTpRows3; // private Integer moduleTpRows3;
|
||||
|
||||
@Schema(description = "모듈4단수")
|
||||
private String moduleTpRows4; // private Integer moduleTpRows4;
|
||||
|
||||
@Schema(description = "모듈5단수")
|
||||
private String moduleTpRows5; // private Integer moduleTpRows5;
|
||||
|
||||
@Schema(description = "랙목록")
|
||||
private List<ApiTrestleDetailRackItemResponse> racks;
|
||||
}
|
||||
|
||||
@ -1,13 +1,15 @@
|
||||
package com.interplug.qcast.biz.master.dto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
@Schema(description = "Api 가대 상세 조회 응답 객체")
|
||||
public class ApiTrestleDetailResponse {
|
||||
|
||||
@ -24,39 +26,41 @@ public class ApiTrestleDetailResponse {
|
||||
private Integer moduleMaxCols;
|
||||
|
||||
@Schema(description = "지붕기준모듈설치간격-처마")
|
||||
private double eaveIntvl;
|
||||
private Double eaveIntvl;
|
||||
|
||||
@Schema(description = "지붕기준모듈설치간격-용마루")
|
||||
private double ridgeIntvl;
|
||||
private Double ridgeIntvl;
|
||||
|
||||
@Schema(description = "지붕기준모듈설치간격-케라바")
|
||||
private double kerabaIntvl;
|
||||
private Double kerabaIntvl;
|
||||
|
||||
@Schema(description = "모듈간간격-좌우")
|
||||
private double moduleIntvlHor;
|
||||
private Double moduleIntvlHor;
|
||||
|
||||
@Schema(description = "모듈간간격-상하")
|
||||
private double moduleIntvlVer;
|
||||
private Double moduleIntvlVer;
|
||||
|
||||
@Schema(description = "치조배치 중단처마커버 설치가능여부")
|
||||
private String cvrPlvrYn;
|
||||
|
||||
@Schema(description = "랙리스지지금구수")
|
||||
private double lessSupFitQty;
|
||||
private Double lessSupFitQty;
|
||||
|
||||
@Schema(description = "랙리스지지금구간격(모듈모서리기준)")
|
||||
private double lessSupFitIntvlPct;
|
||||
private Double lessSupFitIntvlPct;
|
||||
|
||||
@Schema(description = "랙구성수량(모듈1개당)")
|
||||
private double rackQty;
|
||||
private Double rackQty;
|
||||
|
||||
@Schema(description = "랙구성간격(모듈좌우면기준)")
|
||||
private double rackIntvlPct;
|
||||
private Double rackIntvlPct;
|
||||
|
||||
@Schema(description = "모듈낙설방지금구수")
|
||||
private Double moduleSnowGdCnt;
|
||||
|
||||
@Schema(description = "Api 가대 상세 모듈 조회 응답 객체")
|
||||
private List<ApiTrestleDetailModuleResponse> module;
|
||||
|
||||
@Schema(description = "Api 가대 상세 랙 조회 응답 객체")
|
||||
private List<ApiTrestleDetailRackResponse> rack;
|
||||
|
||||
private Map<String, ApiTrestleDetailRackResponse> rack; // = new HashMap<>();
|
||||
}
|
||||
|
||||
@ -0,0 +1,25 @@
|
||||
package com.interplug.qcast.biz.master.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
@Schema(description = "Api 가대 상세 스마트랙 응답 객체")
|
||||
public class ApiTrestleDetailSmartRackResponse {
|
||||
|
||||
@Schema(description = "스마트랙순번")
|
||||
private Integer seq;
|
||||
|
||||
@Schema(description = "스마트랙유형코드(RACK:랙 길이, INTVL:랙 간격)")
|
||||
private String setRackTpCd;
|
||||
|
||||
@Schema(description = "스마트랙유형길이(RACK:랙 길이, INTVL:랙 간격)")
|
||||
private Integer setRackTpLen;
|
||||
|
||||
@Schema(description = "랙지지금구수")
|
||||
private Integer supFitQty;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user