refactor: 가대상세조회 api 응답 구조 변경에 따른 대응 수정
This commit is contained in:
parent
6cd692b544
commit
6bbd4fcb62
@ -51,7 +51,7 @@ public interface MasterService {
|
|||||||
@RequestParam(required = false) Integer roofPitch);
|
@RequestParam(required = false) Integer roofPitch);
|
||||||
|
|
||||||
// 가대 상세 조회
|
// 가대 상세 조회
|
||||||
@GetMapping("/trestle/detail")
|
@GetMapping(value = "/trestle/detail", consumes = "application/json")
|
||||||
public ApiResponse<ApiTrestleDetailResponse> getTrestleDetailList(
|
public ApiResponse<ApiTrestleDetailResponse> getTrestleDetailList(
|
||||||
@RequestParam String moduleTpCd,
|
@RequestParam String moduleTpCd,
|
||||||
@RequestParam String roofMatlCd,
|
@RequestParam String roofMatlCd,
|
||||||
|
|||||||
@ -9,25 +9,21 @@ import lombok.Setter;
|
|||||||
@Schema(description = "Api 가대 상세 모듈 조회 응답 객체")
|
@Schema(description = "Api 가대 상세 모듈 조회 응답 객체")
|
||||||
public class ApiTrestleDetailModuleResponse {
|
public class ApiTrestleDetailModuleResponse {
|
||||||
|
|
||||||
@Schema(description = "모듈타입코드(혼합제외)")
|
@Schema(description = "모듈타입코드(혼합제외)")
|
||||||
private String moduleTpCd;
|
private String moduleTpCd;
|
||||||
|
|
||||||
@Schema(description = "장경")
|
@Schema(description = "장경")
|
||||||
private double longAxis;
|
private Double longAxis;
|
||||||
|
|
||||||
@Schema(description = "단경")
|
@Schema(description = "단경")
|
||||||
private double shortAxis;
|
private Double shortAxis;
|
||||||
|
|
||||||
@Schema(description = "두께")
|
@Schema(description = "두께")
|
||||||
private double thickness;
|
private Double thickness;
|
||||||
|
|
||||||
@Schema(description = "색상")
|
@Schema(description = "색상")
|
||||||
private String color;
|
private String color;
|
||||||
|
|
||||||
@Schema(description = "모듈최대단수")
|
|
||||||
private Integer moduleMaxRows;
|
|
||||||
|
|
||||||
@Schema(description = "순번")
|
|
||||||
private Integer priority;
|
|
||||||
|
|
||||||
|
@Schema(description = "모듈최대단수")
|
||||||
|
private Integer moduleMaxRows;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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;
|
package com.interplug.qcast.biz.master.dto;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import java.util.List;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
@Schema(description = "Api 가대 상세 랙 조회 응답 객체")
|
@Schema(description = "Api 가대 상세 랙 조회 응답 객체")
|
||||||
public class ApiTrestleDetailRackResponse {
|
public class ApiTrestleDetailRackResponse {
|
||||||
|
|
||||||
@Schema(description = "모듈총단수")
|
@Schema(description = "모듈타입코드")
|
||||||
private Integer moduleRows;
|
private String moduleTpCd;
|
||||||
|
|
||||||
@Schema(description = "랙단수코드")
|
@Schema(description = "모듈총단수")
|
||||||
private String rackRowsCds;
|
private Integer moduleRows;
|
||||||
|
|
||||||
@Schema(description = "간격")
|
@Schema(description = "모듈1단수")
|
||||||
private String intvls;
|
private String moduleTpRows1; // private Integer moduleTpRows1;
|
||||||
|
|
||||||
|
@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,62 +1,66 @@
|
|||||||
package com.interplug.qcast.biz.master.dto;
|
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 io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
@Schema(description = "Api 가대 상세 조회 응답 객체")
|
@Schema(description = "Api 가대 상세 조회 응답 객체")
|
||||||
public class ApiTrestleDetailResponse {
|
public class ApiTrestleDetailResponse {
|
||||||
|
|
||||||
@Schema(description = "랙여부")
|
|
||||||
private String rackYn;
|
|
||||||
|
|
||||||
@Schema(description = "치조가능여부")
|
@Schema(description = "랙여부")
|
||||||
private String plvrYn;
|
private String rackYn;
|
||||||
|
|
||||||
@Schema(description = "모듈최대단수")
|
@Schema(description = "치조가능여부")
|
||||||
private Integer moduleMaxRows;
|
private String plvrYn;
|
||||||
|
|
||||||
@Schema(description = "모듈최대열수")
|
@Schema(description = "모듈최대단수")
|
||||||
private Integer moduleMaxCols;
|
private Integer moduleMaxRows;
|
||||||
|
|
||||||
@Schema(description = "지붕기준모듈설치간격-처마")
|
@Schema(description = "모듈최대열수")
|
||||||
private double eaveIntvl;
|
private Integer moduleMaxCols;
|
||||||
|
|
||||||
@Schema(description = "지붕기준모듈설치간격-용마루")
|
@Schema(description = "지붕기준모듈설치간격-처마")
|
||||||
private double ridgeIntvl;
|
private Double eaveIntvl;
|
||||||
|
|
||||||
@Schema(description = "지붕기준모듈설치간격-케라바")
|
@Schema(description = "지붕기준모듈설치간격-용마루")
|
||||||
private double kerabaIntvl;
|
private Double ridgeIntvl;
|
||||||
|
|
||||||
@Schema(description = "모듈간간격-좌우")
|
@Schema(description = "지붕기준모듈설치간격-케라바")
|
||||||
private double moduleIntvlHor;
|
private Double kerabaIntvl;
|
||||||
|
|
||||||
@Schema(description = "모듈간간격-상하")
|
@Schema(description = "모듈간간격-좌우")
|
||||||
private double moduleIntvlVer;
|
private Double moduleIntvlHor;
|
||||||
|
|
||||||
@Schema(description = "치조배치 중단처마커버 설치가능여부")
|
@Schema(description = "모듈간간격-상하")
|
||||||
private String cvrPlvrYn;
|
private Double moduleIntvlVer;
|
||||||
|
|
||||||
@Schema(description = "랙리스지지금구수")
|
@Schema(description = "치조배치 중단처마커버 설치가능여부")
|
||||||
private double lessSupFitQty;
|
private String cvrPlvrYn;
|
||||||
|
|
||||||
@Schema(description = "랙리스지지금구간격(모듈모서리기준)")
|
@Schema(description = "랙리스지지금구수")
|
||||||
private double lessSupFitIntvlPct;
|
private Double lessSupFitQty;
|
||||||
|
|
||||||
@Schema(description = "랙구성수량(모듈1개당)")
|
@Schema(description = "랙리스지지금구간격(모듈모서리기준)")
|
||||||
private double rackQty;
|
private Double lessSupFitIntvlPct;
|
||||||
|
|
||||||
@Schema(description = "랙구성간격(모듈좌우면기준)")
|
@Schema(description = "랙구성수량(모듈1개당)")
|
||||||
private double rackIntvlPct;
|
private Double rackQty;
|
||||||
|
|
||||||
@Schema(description = "Api 가대 상세 모듈 조회 응답 객체")
|
@Schema(description = "랙구성간격(모듈좌우면기준)")
|
||||||
private List<ApiTrestleDetailModuleResponse> module;
|
private Double rackIntvlPct;
|
||||||
|
|
||||||
@Schema(description = "Api 가대 상세 랙 조회 응답 객체")
|
@Schema(description = "모듈낙설방지금구수")
|
||||||
private List<ApiTrestleDetailRackResponse> rack;
|
private Double moduleSnowGdCnt;
|
||||||
|
|
||||||
|
@Schema(description = "Api 가대 상세 모듈 조회 응답 객체")
|
||||||
|
private List<ApiTrestleDetailModuleResponse> module;
|
||||||
|
|
||||||
|
@Schema(description = "Api 가대 상세 랙 조회 응답 객체")
|
||||||
|
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