style: 포맷터 적용
This commit is contained in:
parent
48dadf4dd7
commit
e8b13ae9c6
@ -56,8 +56,11 @@ public class MasterController {
|
|||||||
@Parameter(description = "공법코드") @RequestParam(required = false) String constMthdCd,
|
@Parameter(description = "공법코드") @RequestParam(required = false) String constMthdCd,
|
||||||
@Parameter(description = "지붕기초코드") @RequestParam(required = false) String roofBaseCd) {
|
@Parameter(description = "지붕기초코드") @RequestParam(required = false) String roofBaseCd) {
|
||||||
|
|
||||||
ApiTrestleBuilder apiTrestleInfoBuilder = new ApiTrestleBuilder(moduleTpCd, roofMatlCd, raftBaseCd, trestleMkrCd, constMthdCd, roofBaseCd);
|
ApiTrestleBuilder apiTrestleInfoBuilder =
|
||||||
ApiTrestleBuilder atb = apiTrestleInfoBuilder
|
new ApiTrestleBuilder(
|
||||||
|
moduleTpCd, roofMatlCd, raftBaseCd, trestleMkrCd, constMthdCd, roofBaseCd);
|
||||||
|
ApiTrestleBuilder atb =
|
||||||
|
apiTrestleInfoBuilder
|
||||||
.setModuleTpCd(moduleTpCd)
|
.setModuleTpCd(moduleTpCd)
|
||||||
.setRoofMatlCdCd(roofMatlCd)
|
.setRoofMatlCdCd(roofMatlCd)
|
||||||
.setRaftBaseCd(raftBaseCd)
|
.setRaftBaseCd(raftBaseCd)
|
||||||
@ -65,7 +68,13 @@ public class MasterController {
|
|||||||
.setConstMthdCd(constMthdCd)
|
.setConstMthdCd(constMthdCd)
|
||||||
.setRoofBaseCd(roofBaseCd)
|
.setRoofBaseCd(roofBaseCd)
|
||||||
.build();
|
.build();
|
||||||
return masterService.getTrestleList(atb.getModuleTpCd(),atb.getRoofMatlCd(),atb.getRaftBaseCd(),atb.getTrestleMkrCd(),atb.getConstMthdCd(),atb.getRoofBaseCd());
|
return masterService.getTrestleList(
|
||||||
|
atb.getModuleTpCd(),
|
||||||
|
atb.getRoofMatlCd(),
|
||||||
|
atb.getRaftBaseCd(),
|
||||||
|
atb.getTrestleMkrCd(),
|
||||||
|
atb.getConstMthdCd(),
|
||||||
|
atb.getRoofBaseCd());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Operation(description = "시공법 목록 조회한다.")
|
@Operation(description = "시공법 목록 조회한다.")
|
||||||
@ -82,24 +91,48 @@ public class MasterController {
|
|||||||
@Parameter(description = "적설량") @RequestParam String stdSnowLd,
|
@Parameter(description = "적설량") @RequestParam String stdSnowLd,
|
||||||
@Parameter(description = "경사도코드") @RequestParam String inclCd,
|
@Parameter(description = "경사도코드") @RequestParam String inclCd,
|
||||||
@Parameter(description = "서까래기초코드") @RequestParam(required = false) String raftBaseCd,
|
@Parameter(description = "서까래기초코드") @RequestParam(required = false) String raftBaseCd,
|
||||||
@Parameter(description = "하제(망둥어)피치") @RequestParam(required = false) Integer roofPitch) throws QcastException {
|
@Parameter(description = "하제(망둥어)피치") @RequestParam(required = false) Integer roofPitch)
|
||||||
|
throws QcastException {
|
||||||
|
|
||||||
if (moduleTpCd == null || moduleTpCd.trim().isEmpty() ||
|
if (moduleTpCd == null
|
||||||
roofMatlCd == null || roofMatlCd.trim().isEmpty() ||
|
|| moduleTpCd.trim().isEmpty()
|
||||||
trestleMkrCd == null || trestleMkrCd.trim().isEmpty() ||
|
|| roofMatlCd == null
|
||||||
constMthdCd == null || constMthdCd.trim().isEmpty() ||
|
|| roofMatlCd.trim().isEmpty()
|
||||||
roofBaseCd == null || roofBaseCd.trim().isEmpty() ||
|
|| trestleMkrCd == null
|
||||||
illuminationTp == null || illuminationTp.trim().isEmpty() ||
|
|| trestleMkrCd.trim().isEmpty()
|
||||||
instHt == null || instHt.trim().isEmpty() ||
|
|| constMthdCd == null
|
||||||
stdWindSpeed == null || stdWindSpeed.trim().isEmpty() ||
|
|| constMthdCd.trim().isEmpty()
|
||||||
stdSnowLd == null || stdSnowLd.trim().isEmpty() ||
|
|| roofBaseCd == null
|
||||||
inclCd == null || inclCd.trim().isEmpty()) {
|
|| roofBaseCd.trim().isEmpty()
|
||||||
|
|| illuminationTp == null
|
||||||
|
|| illuminationTp.trim().isEmpty()
|
||||||
|
|| instHt == null
|
||||||
|
|| instHt.trim().isEmpty()
|
||||||
|
|| stdWindSpeed == null
|
||||||
|
|| stdWindSpeed.trim().isEmpty()
|
||||||
|
|| stdSnowLd == null
|
||||||
|
|| stdSnowLd.trim().isEmpty()
|
||||||
|
|| inclCd == null
|
||||||
|
|| inclCd.trim().isEmpty()) {
|
||||||
throw new QcastException(ErrorCode.INVALID_INPUT_VALUE);
|
throw new QcastException(ErrorCode.INVALID_INPUT_VALUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
ApiConstructionBuilder apiConstructionBuilder = new ApiConstructionBuilder(moduleTpCd, roofMatlCd, trestleMkrCd, constMthdCd, roofBaseCd, illuminationTp
|
ApiConstructionBuilder apiConstructionBuilder =
|
||||||
, instHt, stdWindSpeed, stdSnowLd, inclCd, raftBaseCd, roofPitch);
|
new ApiConstructionBuilder(
|
||||||
ApiConstructionBuilder acb = apiConstructionBuilder
|
moduleTpCd,
|
||||||
|
roofMatlCd,
|
||||||
|
trestleMkrCd,
|
||||||
|
constMthdCd,
|
||||||
|
roofBaseCd,
|
||||||
|
illuminationTp,
|
||||||
|
instHt,
|
||||||
|
stdWindSpeed,
|
||||||
|
stdSnowLd,
|
||||||
|
inclCd,
|
||||||
|
raftBaseCd,
|
||||||
|
roofPitch);
|
||||||
|
ApiConstructionBuilder acb =
|
||||||
|
apiConstructionBuilder
|
||||||
.setModuleTpCd(moduleTpCd)
|
.setModuleTpCd(moduleTpCd)
|
||||||
.setRoofMatlCd(roofMatlCd)
|
.setRoofMatlCd(roofMatlCd)
|
||||||
.setTrestleMkrCd(trestleMkrCd)
|
.setTrestleMkrCd(trestleMkrCd)
|
||||||
@ -114,8 +147,19 @@ public class MasterController {
|
|||||||
.setRoofPitch(roofPitch)
|
.setRoofPitch(roofPitch)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
return masterService.getConstructionList(acb.getModuleTpCd(), acb.getRoofMatlCd(), acb.getTrestleMkrCd(), acb.getConstMthdCd(), acb.getRoofBaseCd(), acb.getIlluminationTp()
|
return masterService.getConstructionList(
|
||||||
, acb.getInstHt(), acb.getStdWindSpeed(), acb.getStdSnowLd(), acb.getInclCd(), acb.getRaftBaseCd(), acb.getRoofPitch());
|
acb.getModuleTpCd(),
|
||||||
|
acb.getRoofMatlCd(),
|
||||||
|
acb.getTrestleMkrCd(),
|
||||||
|
acb.getConstMthdCd(),
|
||||||
|
acb.getRoofBaseCd(),
|
||||||
|
acb.getIlluminationTp(),
|
||||||
|
acb.getInstHt(),
|
||||||
|
acb.getStdWindSpeed(),
|
||||||
|
acb.getStdSnowLd(),
|
||||||
|
acb.getInclCd(),
|
||||||
|
acb.getRaftBaseCd(),
|
||||||
|
acb.getRoofPitch());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Operation(description = "가대 상세 조회한다.")
|
@Operation(description = "가대 상세 조회한다.")
|
||||||
@ -133,25 +177,51 @@ public class MasterController {
|
|||||||
@Parameter(description = "경사도코드") @RequestParam String inclCd,
|
@Parameter(description = "경사도코드") @RequestParam String inclCd,
|
||||||
@Parameter(description = "시공법") @RequestParam String constTp,
|
@Parameter(description = "시공법") @RequestParam String constTp,
|
||||||
@Parameter(description = "혼합모듈번호") @RequestParam(required = false) Integer mixMatlNo,
|
@Parameter(description = "혼합모듈번호") @RequestParam(required = false) Integer mixMatlNo,
|
||||||
@Parameter(description = "하제(망둥어)피치") @RequestParam(required = false) Integer roofPitch) throws QcastException {
|
@Parameter(description = "하제(망둥어)피치") @RequestParam(required = false) Integer roofPitch)
|
||||||
|
throws QcastException {
|
||||||
|
|
||||||
if (moduleTpCd == null || moduleTpCd.trim().isEmpty() ||
|
if (moduleTpCd == null
|
||||||
roofMatlCd == null || roofMatlCd.trim().isEmpty() ||
|
|| moduleTpCd.trim().isEmpty()
|
||||||
trestleMkrCd == null || trestleMkrCd.trim().isEmpty() ||
|
|| roofMatlCd == null
|
||||||
constMthdCd == null || constMthdCd.trim().isEmpty() ||
|
|| roofMatlCd.trim().isEmpty()
|
||||||
roofBaseCd == null || roofBaseCd.trim().isEmpty() ||
|
|| trestleMkrCd == null
|
||||||
illuminationTp == null || illuminationTp.trim().isEmpty() ||
|
|| trestleMkrCd.trim().isEmpty()
|
||||||
instHt == null || instHt.trim().isEmpty() ||
|
|| constMthdCd == null
|
||||||
stdWindSpeed == null || stdWindSpeed.trim().isEmpty() ||
|
|| constMthdCd.trim().isEmpty()
|
||||||
stdSnowLd == null || stdSnowLd.trim().isEmpty() ||
|
|| roofBaseCd == null
|
||||||
inclCd == null || inclCd.trim().isEmpty() ||
|
|| roofBaseCd.trim().isEmpty()
|
||||||
constTp == null || constTp.trim().isEmpty()) {
|
|| illuminationTp == null
|
||||||
|
|| illuminationTp.trim().isEmpty()
|
||||||
|
|| instHt == null
|
||||||
|
|| instHt.trim().isEmpty()
|
||||||
|
|| stdWindSpeed == null
|
||||||
|
|| stdWindSpeed.trim().isEmpty()
|
||||||
|
|| stdSnowLd == null
|
||||||
|
|| stdSnowLd.trim().isEmpty()
|
||||||
|
|| inclCd == null
|
||||||
|
|| inclCd.trim().isEmpty()
|
||||||
|
|| constTp == null
|
||||||
|
|| constTp.trim().isEmpty()) {
|
||||||
throw new QcastException(ErrorCode.INVALID_INPUT_VALUE);
|
throw new QcastException(ErrorCode.INVALID_INPUT_VALUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
ApiTrestleDetailBuilder apiTrestleDetailBuilder = new ApiTrestleDetailBuilder(moduleTpCd, roofMatlCd, trestleMkrCd, constMthdCd, roofBaseCd, illuminationTp
|
ApiTrestleDetailBuilder apiTrestleDetailBuilder =
|
||||||
, instHt, stdWindSpeed, stdSnowLd, inclCd, constTp, mixMatlNo, roofPitch);
|
new ApiTrestleDetailBuilder(
|
||||||
ApiTrestleDetailBuilder atdb = apiTrestleDetailBuilder
|
moduleTpCd,
|
||||||
|
roofMatlCd,
|
||||||
|
trestleMkrCd,
|
||||||
|
constMthdCd,
|
||||||
|
roofBaseCd,
|
||||||
|
illuminationTp,
|
||||||
|
instHt,
|
||||||
|
stdWindSpeed,
|
||||||
|
stdSnowLd,
|
||||||
|
inclCd,
|
||||||
|
constTp,
|
||||||
|
mixMatlNo,
|
||||||
|
roofPitch);
|
||||||
|
ApiTrestleDetailBuilder atdb =
|
||||||
|
apiTrestleDetailBuilder
|
||||||
.setModuleTpCd(moduleTpCd)
|
.setModuleTpCd(moduleTpCd)
|
||||||
.setRoofMatlCd(roofMatlCd)
|
.setRoofMatlCd(roofMatlCd)
|
||||||
.setTrestleMkrCd(trestleMkrCd)
|
.setTrestleMkrCd(trestleMkrCd)
|
||||||
@ -167,7 +237,19 @@ public class MasterController {
|
|||||||
.setRoofPitch(roofPitch)
|
.setRoofPitch(roofPitch)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
return masterService.getTrestleDetailList(atdb.getModuleTpCd(), atdb.getRoofMatlCd(), atdb.getTrestleMkrCd(), atdb.getConstMthdCd(), atdb.getRoofBaseCd(), atdb.getIlluminationTp()
|
return masterService.getTrestleDetailList(
|
||||||
, atdb.getInstHt(), atdb.getStdWindSpeed(), atdb.getStdSnowLd(), atdb.getInclCd(), atdb.getConstTp(), atdb.getMixMatlNo(), atdb.getRoofPitch());
|
atdb.getModuleTpCd(),
|
||||||
|
atdb.getRoofMatlCd(),
|
||||||
|
atdb.getTrestleMkrCd(),
|
||||||
|
atdb.getConstMthdCd(),
|
||||||
|
atdb.getRoofBaseCd(),
|
||||||
|
atdb.getIlluminationTp(),
|
||||||
|
atdb.getInstHt(),
|
||||||
|
atdb.getStdWindSpeed(),
|
||||||
|
atdb.getStdSnowLd(),
|
||||||
|
atdb.getInclCd(),
|
||||||
|
atdb.getConstTp(),
|
||||||
|
atdb.getMixMatlNo(),
|
||||||
|
atdb.getRoofPitch());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -66,5 +66,4 @@ public interface MasterService {
|
|||||||
@RequestParam String constTp,
|
@RequestParam String constTp,
|
||||||
@RequestParam(required = false) Integer mixMatlNo,
|
@RequestParam(required = false) Integer mixMatlNo,
|
||||||
@RequestParam(required = false) Integer roofPitch);
|
@RequestParam(required = false) Integer roofPitch);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,7 @@
|
|||||||
package com.interplug.qcast.biz.master.dto;
|
package com.interplug.qcast.biz.master.dto;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
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;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user