Merge branch 'dev' into feature/qcast-231
This commit is contained in:
commit
172bcbf128
@ -2,16 +2,14 @@ package com.interplug.qcast.biz.canvasBasicSetting;
|
|||||||
|
|
||||||
import com.interplug.qcast.biz.canvasBasicSetting.dto.CanvasBasicSettingInfo;
|
import com.interplug.qcast.biz.canvasBasicSetting.dto.CanvasBasicSettingInfo;
|
||||||
import com.interplug.qcast.biz.canvasBasicSetting.dto.CanvasBasicSettingResponse;
|
import com.interplug.qcast.biz.canvasBasicSetting.dto.CanvasBasicSettingResponse;
|
||||||
|
import com.interplug.qcast.biz.canvasBasicSetting.dto.RoofAllocationSettingInfo;
|
||||||
import com.interplug.qcast.config.Exception.QcastException;
|
import com.interplug.qcast.config.Exception.QcastException;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
@ -43,13 +41,13 @@ public class CanvasBasicSettingController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Operation(description = "지붕면 할당 정보를 등록 한다.")
|
@Operation(description = "지붕면 할당 정보를 등록 한다.")
|
||||||
@PostMapping("/roof-allocation-settings/")
|
@PostMapping("/roof-allocation-settings")
|
||||||
@ResponseStatus(HttpStatus.CREATED)
|
@ResponseStatus(HttpStatus.CREATED)
|
||||||
public Map<String, String> insertRoofAllocSetting(@RequestBody CanvasBasicSettingInfo rai) throws QcastException {
|
public Map<String, String> insertRoofAllocSetting(@RequestBody RoofAllocationSettingInfo rasi) throws QcastException {
|
||||||
|
|
||||||
log.debug("지붕면 할당 등록 ::::: " + rai.getObjectNo());
|
log.debug("지붕면 할당 등록 ::::: " + rasi.getObjectNo());
|
||||||
|
|
||||||
return canvasBasicSettingService.insertRoofAllocSetting(rai);
|
return canvasBasicSettingService.insertRoofAllocSetting(rasi);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Operation(description = "Canvas 지붕재추가 Setting 정보를 삭제 한다.")
|
@Operation(description = "Canvas 지붕재추가 Setting 정보를 삭제 한다.")
|
||||||
|
|||||||
@ -12,6 +12,7 @@ import org.springframework.stereotype.Service;
|
|||||||
import com.interplug.qcast.biz.canvasBasicSetting.dto.CanvasBasicSettingInfo;
|
import com.interplug.qcast.biz.canvasBasicSetting.dto.CanvasBasicSettingInfo;
|
||||||
import com.interplug.qcast.biz.canvasBasicSetting.dto.CanvasBasicSettingResponse;
|
import com.interplug.qcast.biz.canvasBasicSetting.dto.CanvasBasicSettingResponse;
|
||||||
import com.interplug.qcast.biz.canvasBasicSetting.dto.RoofAllocationInfo;
|
import com.interplug.qcast.biz.canvasBasicSetting.dto.RoofAllocationInfo;
|
||||||
|
import com.interplug.qcast.biz.canvasBasicSetting.dto.RoofAllocationSettingInfo;
|
||||||
import com.interplug.qcast.biz.canvasBasicSetting.dto.RoofMaterialsAddInfo;
|
import com.interplug.qcast.biz.canvasBasicSetting.dto.RoofMaterialsAddInfo;
|
||||||
import com.interplug.qcast.config.Exception.ErrorCode;
|
import com.interplug.qcast.config.Exception.ErrorCode;
|
||||||
import com.interplug.qcast.config.Exception.QcastException;
|
import com.interplug.qcast.config.Exception.QcastException;
|
||||||
@ -86,34 +87,28 @@ public class CanvasBasicSettingService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 지붕면 할당 Setting 등록
|
// 지붕면 할당 Setting 등록
|
||||||
public Map<String, String> insertRoofAllocSetting(CanvasBasicSettingInfo csi) throws QcastException {
|
public Map<String, String> insertRoofAllocSetting(RoofAllocationSettingInfo rasi) throws QcastException {
|
||||||
|
|
||||||
Map<String, String> response = new HashMap<>();
|
Map<String, String> response = new HashMap<>();
|
||||||
|
|
||||||
if (csi.getObjectNo() == null) {
|
if (rasi.getObjectNo() == null) {
|
||||||
throw new QcastException (ErrorCode.INVALID_INPUT_VALUE ,"올바르지 않은 입력값입니다.");
|
throw new QcastException (ErrorCode.INVALID_INPUT_VALUE ,"올바르지 않은 입력값입니다.");
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
// 기존 지붕재추가 정보 삭제 후 insert
|
// 기존 지붕재추가 정보 삭제 후 insert
|
||||||
canvasBasicSettingMapper.deleteRoofMaterialsAdd(csi.getObjectNo());
|
canvasBasicSettingMapper.deleteRoofMaterialsAdd(rasi.getObjectNo());
|
||||||
|
|
||||||
int roofSeq = 0;
|
|
||||||
// for-each 루프를 사용하여 지붕재추가 Setting
|
// for-each 루프를 사용하여 지붕재추가 Setting
|
||||||
for (RoofAllocationInfo rai : csi.getRoofAllocationList()) {
|
for (RoofAllocationInfo rai : rasi.getRoofAllocationList()) {
|
||||||
|
rai.setObjectNo(rasi.getObjectNo());
|
||||||
rai.setObjectNo(csi.getObjectNo());
|
|
||||||
rai.setRoofSeq(roofSeq++); //roofSeq는 순차적으로 새로 생성하여 insert
|
|
||||||
|
|
||||||
// 신규 지붕재추가 정보 insert
|
|
||||||
canvasBasicSettingMapper.insertRoofAllocation(rai);
|
canvasBasicSettingMapper.insertRoofAllocation(rai);
|
||||||
}
|
}
|
||||||
response.put("objectNo", csi.getObjectNo());
|
response.put("objectNo", rasi.getObjectNo());
|
||||||
response.put("returnMessage", "common.message.confirm.mark");
|
response.put("returnMessage", "common.message.confirm.mark");
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
response.put("objectNo", csi.getObjectNo());
|
response.put("objectNo", rasi.getObjectNo());
|
||||||
response.put("returnMessage", "common.message.save.error");
|
response.put("returnMessage", "common.message.save.error");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -18,5 +18,4 @@ public class CanvasBasicSettingInfo {
|
|||||||
private Date lastEditDatetime; //수정일시
|
private Date lastEditDatetime; //수정일시
|
||||||
|
|
||||||
private List<RoofMaterialsAddInfo> roofMaterialsAddList;
|
private List<RoofMaterialsAddInfo> roofMaterialsAddList;
|
||||||
private List<RoofAllocationInfo> roofAllocationList;
|
|
||||||
}
|
}
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
package com.interplug.qcast.biz.canvasBasicSetting.dto;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
public class RoofAllocationSettingInfo {
|
||||||
|
|
||||||
|
private String objectNo; //견적서 번호
|
||||||
|
private Integer roofSizeSet; //치수(복사도/실측값/육지붕)
|
||||||
|
private String roofAngleSet; //각도(경사/각도)
|
||||||
|
|
||||||
|
private List<RoofAllocationInfo> roofAllocationList;
|
||||||
|
}
|
||||||
@ -108,6 +108,9 @@ public interface EstimateMapper {
|
|||||||
// 견적서 복사
|
// 견적서 복사
|
||||||
public int insertEstimateCopy(EstimateCopyRequest estimateCopyRequest);
|
public int insertEstimateCopy(EstimateCopyRequest estimateCopyRequest);
|
||||||
|
|
||||||
|
// 견적서 도면 아이템 복사
|
||||||
|
public int insertEstimateDrawingItemCopy(EstimateCopyRequest estimateCopyRequest);
|
||||||
|
|
||||||
// Plan 확정 동기화
|
// Plan 확정 동기화
|
||||||
public int updatePlanConfirmSync(PlanSyncResponse planSyncData);
|
public int updatePlanConfirmSync(PlanSyncResponse planSyncData);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -784,6 +784,7 @@ public class EstimateService {
|
|||||||
itemRequest.setPkgMaterialFlg(itemResponse.getPkgMaterialFlg());
|
itemRequest.setPkgMaterialFlg(itemResponse.getPkgMaterialFlg());
|
||||||
itemRequest.setFileUploadFlg(itemResponse.getFileUploadFlg());
|
itemRequest.setFileUploadFlg(itemResponse.getFileUploadFlg());
|
||||||
itemRequest.setItemGroup(itemResponse.getItemGroup());
|
itemRequest.setItemGroup(itemResponse.getItemGroup());
|
||||||
|
itemRequest.setOpenFlg(itemResponse.getOpenFlg());
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -810,7 +811,7 @@ public class EstimateService {
|
|||||||
estimateMapper.insertEstimateItem(itemRequest);
|
estimateMapper.insertEstimateItem(itemRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
// [6]. 견적서 지붕재 복사
|
// [6]. 견적서 지붕재 및 도면 초기 데이터 복사
|
||||||
List<RoofResponse> roofList = estimateMapper.selectEstimateRoofList(estimateRequest);
|
List<RoofResponse> roofList = estimateMapper.selectEstimateRoofList(estimateRequest);
|
||||||
List<RoofResponse> roofItemList = estimateMapper.selectEstimateRoofItemList(estimateRequest);
|
List<RoofResponse> roofItemList = estimateMapper.selectEstimateRoofItemList(estimateRequest);
|
||||||
List<ItemResponse> circuitItemList =
|
List<ItemResponse> circuitItemList =
|
||||||
@ -868,9 +869,13 @@ public class EstimateService {
|
|||||||
estimateMapper.insertEstimateCircuitItem(circuitItemRequest);
|
estimateMapper.insertEstimateCircuitItem(circuitItemRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 도면 초기 데이타 복사(초기화 위해 필요)
|
||||||
|
estimateMapper.insertEstimateDrawingItemCopy(estimateCopyRequest);
|
||||||
|
|
||||||
// [7]. 견적서 도면 복사 (추후 개발 필요)
|
// [7]. 견적서 도면 복사 (추후 개발 필요)
|
||||||
|
|
||||||
// [8]. QSP Q.CAST SEND API
|
// [8]. QSP Q.CAST SEND API
|
||||||
|
/*
|
||||||
List<EstimateSendResponse> resultList = new ArrayList<EstimateSendResponse>();
|
List<EstimateSendResponse> resultList = new ArrayList<EstimateSendResponse>();
|
||||||
estimateRequest.setObjectNo(estimateCopyRequest.getCopyObjectNo());
|
estimateRequest.setObjectNo(estimateCopyRequest.getCopyObjectNo());
|
||||||
estimateRequest.setPlanNo(estimateCopyRequest.getCopyPlanNo());
|
estimateRequest.setPlanNo(estimateCopyRequest.getCopyPlanNo());
|
||||||
@ -885,6 +890,7 @@ public class EstimateService {
|
|||||||
|
|
||||||
estimateMapper.updateEstimateApi(estimateRequest);
|
estimateMapper.updateEstimateApi(estimateRequest);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new QcastException(ErrorCode.INTERNAL_SERVER_ERROR);
|
throw new QcastException(ErrorCode.INTERNAL_SERVER_ERROR);
|
||||||
@ -960,6 +966,7 @@ public class EstimateService {
|
|||||||
String[] arrItemId = new String[itemList.size()];
|
String[] arrItemId = new String[itemList.size()];
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (ItemRequest itemRequest : itemList) {
|
for (ItemRequest itemRequest : itemList) {
|
||||||
|
System.out.println(">>>>>>>>>>>>>>>>" + itemRequest.getItemId());
|
||||||
arrItemId[i++] = itemRequest.getItemId();
|
arrItemId[i++] = itemRequest.getItemId();
|
||||||
}
|
}
|
||||||
estimateRequest.setArrItemId(arrItemId);
|
estimateRequest.setArrItemId(arrItemId);
|
||||||
|
|||||||
@ -12,12 +12,14 @@ import com.interplug.qcast.biz.master.dto.quotation.ApiQuotationItemRequest;
|
|||||||
import com.interplug.qcast.biz.master.dto.quotation.ApiQuotationItemResponse;
|
import com.interplug.qcast.biz.master.dto.quotation.ApiQuotationItemResponse;
|
||||||
import com.interplug.qcast.biz.master.dto.roofmaterial.ApiRoofMaterialResponse;
|
import com.interplug.qcast.biz.master.dto.roofmaterial.ApiRoofMaterialResponse;
|
||||||
import com.interplug.qcast.biz.master.dto.trestle.ApiTrestleResponse;
|
import com.interplug.qcast.biz.master.dto.trestle.ApiTrestleResponse;
|
||||||
|
import com.interplug.qcast.biz.master.dto.trestle.detail.ApiTrestleDetailRequest;
|
||||||
import com.interplug.qcast.biz.master.dto.trestle.detail.ApiTrestleDetailResponse;
|
import com.interplug.qcast.biz.master.dto.trestle.detail.ApiTrestleDetailResponse;
|
||||||
import com.interplug.qcast.config.Exception.ErrorCode;
|
import com.interplug.qcast.config.Exception.ErrorCode;
|
||||||
import com.interplug.qcast.config.Exception.QcastException;
|
import com.interplug.qcast.config.Exception.QcastException;
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
@ -173,79 +175,38 @@ public class MasterController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Operation(description = "가대 상세 조회한다.")
|
@Operation(description = "가대 상세 조회한다.")
|
||||||
@GetMapping("/getTrestleDetailList")
|
@PostMapping("/getTrestleDetailList")
|
||||||
public ApiResponse<ApiTrestleDetailResponse> getTrestleDetailList(
|
public ArrayList<ApiResponse<ApiTrestleDetailResponse>> getTrestleDetailList(
|
||||||
@Parameter(description = "모듈타입코드") @RequestParam String moduleTpCd,
|
@RequestBody List<ApiTrestleDetailRequest> reqList) {
|
||||||
@Parameter(description = "지붕재코드") @RequestParam String roofMatlCd,
|
ArrayList<ApiResponse<ApiTrestleDetailResponse>> results = new ArrayList<>();
|
||||||
@Parameter(description = "가대메이커코드") @RequestParam String trestleMkrCd,
|
for (ApiTrestleDetailRequest req : reqList) {
|
||||||
@Parameter(description = "공법코드") @RequestParam String constMthdCd,
|
|
||||||
@Parameter(description = "지붕기초코드") @RequestParam String roofBaseCd,
|
|
||||||
@Parameter(description = "면조도") @RequestParam String illuminationTp,
|
|
||||||
@Parameter(description = "설치높이") @RequestParam String instHt,
|
|
||||||
@Parameter(description = "풍속") @RequestParam String stdWindSpeed,
|
|
||||||
@Parameter(description = "적설량") @RequestParam String stdSnowLd,
|
|
||||||
@Parameter(description = "경사도코드") @RequestParam String inclCd,
|
|
||||||
@Parameter(description = "시공법") @RequestParam String constTp,
|
|
||||||
@Parameter(description = "혼합모듈번호") @RequestParam(required = false) Integer mixMatlNo,
|
|
||||||
@Parameter(description = "하제(망둥어)피치") @RequestParam(required = false) Integer roofPitch)
|
|
||||||
throws QcastException {
|
|
||||||
|
|
||||||
if (moduleTpCd == null
|
ApiResponse<ApiTrestleDetailResponse> response =
|
||||||
|| moduleTpCd.trim().isEmpty()
|
masterService.getTrestleDetailList(
|
||||||
|| roofMatlCd == null
|
req.getModuleTpCd(),
|
||||||
|| roofMatlCd.trim().isEmpty()
|
req.getRoofMatlCd(),
|
||||||
|| trestleMkrCd == null
|
req.getTrestleMkrCd(),
|
||||||
|| trestleMkrCd.trim().isEmpty()
|
req.getConstMthdCd(),
|
||||||
|| constMthdCd == null
|
req.getRoofBaseCd(),
|
||||||
|| constMthdCd.trim().isEmpty()
|
req.getIlluminationTp(),
|
||||||
|| roofBaseCd == null
|
req.getInstHt(),
|
||||||
|| roofBaseCd.trim().isEmpty()
|
req.getStdWindSpeed(),
|
||||||
|| illuminationTp == null
|
req.getStdSnowLd(),
|
||||||
|| illuminationTp.trim().isEmpty()
|
req.getInclCd(),
|
||||||
|| instHt == null
|
req.getConstTp(),
|
||||||
|| instHt.trim().isEmpty()
|
req.getMixMatlNo(),
|
||||||
|| stdWindSpeed == null
|
req.getRoofPitch());
|
||||||
|| stdWindSpeed.trim().isEmpty()
|
|
||||||
|| stdSnowLd == null
|
ApiTrestleDetailResponse data = response.getData();
|
||||||
|| stdSnowLd.trim().isEmpty()
|
data.setRoofIndex(req.getRoofIndex()); // roofIndex 추가하기 위함
|
||||||
|| inclCd == null
|
ApiResultResponse resultCode = response.getResult();
|
||||||
|| inclCd.trim().isEmpty()
|
|
||||||
|| constTp == null
|
ApiResponse<ApiTrestleDetailResponse> resultResponse = new ApiResponse<>();
|
||||||
|| constTp.trim().isEmpty()) {
|
resultResponse.setData(data);
|
||||||
throw new QcastException(ErrorCode.INVALID_INPUT_VALUE);
|
resultResponse.setResult(resultCode);
|
||||||
|
results.add(resultResponse);
|
||||||
}
|
}
|
||||||
|
return results;
|
||||||
ApiTrestleDetailBuilder atdb =
|
|
||||||
ApiTrestleDetailBuilder.builder()
|
|
||||||
.moduleTpCd(moduleTpCd)
|
|
||||||
.roofMatlCd(roofMatlCd)
|
|
||||||
.trestleMkrCd(trestleMkrCd)
|
|
||||||
.constMthdCd(constMthdCd)
|
|
||||||
.roofBaseCd(roofBaseCd)
|
|
||||||
.illuminationTp(illuminationTp)
|
|
||||||
.instHt(instHt)
|
|
||||||
.stdWindSpeed(stdWindSpeed)
|
|
||||||
.stdSnowLd(stdSnowLd)
|
|
||||||
.inclCd(inclCd)
|
|
||||||
.constTp(constTp)
|
|
||||||
.mixMatlNo(mixMatlNo)
|
|
||||||
.roofPitch(roofPitch)
|
|
||||||
.build();
|
|
||||||
|
|
||||||
return masterService.getTrestleDetailList(
|
|
||||||
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());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Operation(description = "PCS 메이커, 시리즈 조회한다.")
|
@Operation(description = "PCS 메이커, 시리즈 조회한다.")
|
||||||
@ -264,7 +225,7 @@ public class MasterController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Operation(description = "시리즈 중 자동으로 추천 PCS 정보 조회한다.")
|
@Operation(description = "시리즈 중 자동으로 추천 PCS 정보 조회한다.")
|
||||||
@PostMapping("/pcsAutoRecommendList")
|
@PostMapping("/getPcsAutoRecommendList")
|
||||||
public ApiResponse<ApiPcsAutoRecommendResponse> getPcsAutoRecommendList(
|
public ApiResponse<ApiPcsAutoRecommendResponse> getPcsAutoRecommendList(
|
||||||
@RequestBody ApiPcsAutoRecommendRequest autoRecommendRequest) {
|
@RequestBody ApiPcsAutoRecommendRequest autoRecommendRequest) {
|
||||||
return masterService.getPcsAutoRecommendList(autoRecommendRequest);
|
return masterService.getPcsAutoRecommendList(autoRecommendRequest);
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
package com.interplug.qcast.biz.master.dto.trestle.detail;
|
package com.interplug.qcast.biz.master.dto.trestle.detail;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
|
||||||
@ -9,40 +10,48 @@ import lombok.Setter;
|
|||||||
@Schema(description = "Api 가대 상세 조회 요청 객체")
|
@Schema(description = "Api 가대 상세 조회 요청 객체")
|
||||||
public class ApiTrestleDetailRequest {
|
public class ApiTrestleDetailRequest {
|
||||||
|
|
||||||
@Schema(description = "Language코드")
|
|
||||||
private String langCd;
|
|
||||||
|
|
||||||
@Schema(description = "모듈타입코드")
|
@Schema(description = "모듈타입코드")
|
||||||
|
@NotNull
|
||||||
private String moduleTpCd;
|
private String moduleTpCd;
|
||||||
|
|
||||||
@Schema(description = "지붕재코드")
|
@Schema(description = "지붕재코드")
|
||||||
|
@NotNull
|
||||||
private String roofMatlCd;
|
private String roofMatlCd;
|
||||||
|
|
||||||
@Schema(description = "가대메이커코드")
|
@Schema(description = "가대메이커코드")
|
||||||
|
@NotNull
|
||||||
private String trestleMkrCd;
|
private String trestleMkrCd;
|
||||||
|
|
||||||
@Schema(description = "공법코드")
|
@Schema(description = "공법코드")
|
||||||
|
@NotNull
|
||||||
private String constMthdCd;
|
private String constMthdCd;
|
||||||
|
|
||||||
@Schema(description = "지붕기초코드")
|
@Schema(description = "지붕기초코드")
|
||||||
|
@NotNull
|
||||||
private String roofBaseCd;
|
private String roofBaseCd;
|
||||||
|
|
||||||
@Schema(description = "면조도")
|
@Schema(description = "면조도")
|
||||||
|
@NotNull
|
||||||
private String illuminationTp;
|
private String illuminationTp;
|
||||||
|
|
||||||
@Schema(description = "설치높이")
|
@Schema(description = "설치높이")
|
||||||
|
@NotNull
|
||||||
private String instHt;
|
private String instHt;
|
||||||
|
|
||||||
@Schema(description = "풍속")
|
@Schema(description = "풍속")
|
||||||
|
@NotNull
|
||||||
private String stdWindSpeed;
|
private String stdWindSpeed;
|
||||||
|
|
||||||
@Schema(description = "적설량")
|
@Schema(description = "적설량")
|
||||||
|
@NotNull
|
||||||
private String stdSnowLd;
|
private String stdSnowLd;
|
||||||
|
|
||||||
@Schema(description = "경사도코드")
|
@Schema(description = "경사도코드")
|
||||||
|
@NotNull
|
||||||
private String inclCd;
|
private String inclCd;
|
||||||
|
|
||||||
@Schema(description = "시공법")
|
@Schema(description = "시공법")
|
||||||
|
@NotNull
|
||||||
private String constTp;
|
private String constTp;
|
||||||
|
|
||||||
@Schema(description = "혼합모듈번호")
|
@Schema(description = "혼합모듈번호")
|
||||||
@ -50,4 +59,7 @@ public class ApiTrestleDetailRequest {
|
|||||||
|
|
||||||
@Schema(description = "하제(망둥어)피치")
|
@Schema(description = "하제(망둥어)피치")
|
||||||
private Integer roofPitch;
|
private Integer roofPitch;
|
||||||
|
|
||||||
|
@Schema(description = "지붕index 번호")
|
||||||
|
private String roofIndex;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,6 +13,9 @@ import lombok.Setter;
|
|||||||
@Schema(description = "Api 가대 상세 조회 응답 객체")
|
@Schema(description = "Api 가대 상세 조회 응답 객체")
|
||||||
public class ApiTrestleDetailResponse {
|
public class ApiTrestleDetailResponse {
|
||||||
|
|
||||||
|
@Schema(description = "지붕index")
|
||||||
|
private String roofIndex;
|
||||||
|
|
||||||
@Schema(description = "랙여부")
|
@Schema(description = "랙여부")
|
||||||
private String rackYn;
|
private String rackYn;
|
||||||
|
|
||||||
|
|||||||
@ -1011,6 +1011,8 @@
|
|||||||
, CONSTRUCT_SPECIFICATION_MULTI
|
, CONSTRUCT_SPECIFICATION_MULTI
|
||||||
, SURFACE_TYPE
|
, SURFACE_TYPE
|
||||||
, ANGLE
|
, ANGLE
|
||||||
|
, TEMP_FLG
|
||||||
|
, LOCK_FLG
|
||||||
, SYNC_FLG
|
, SYNC_FLG
|
||||||
, CREATE_DATETIME
|
, CREATE_DATETIME
|
||||||
, CREATE_USER
|
, CREATE_USER
|
||||||
@ -1062,6 +1064,8 @@
|
|||||||
, P.CONSTRUCT_SPECIFICATION_MULTI
|
, P.CONSTRUCT_SPECIFICATION_MULTI
|
||||||
, P.SURFACE_TYPE
|
, P.SURFACE_TYPE
|
||||||
, P.ANGLE
|
, P.ANGLE
|
||||||
|
, '1' AS TEMP_FLG
|
||||||
|
, '0' AS LOCK_FLG
|
||||||
, '0' AS SYNC_FLG
|
, '0' AS SYNC_FLG
|
||||||
, GETDATE() AS CREATE_DATETIME
|
, GETDATE() AS CREATE_DATETIME
|
||||||
, #{userId} AS CREATE_USER
|
, #{userId} AS CREATE_USER
|
||||||
@ -1071,6 +1075,31 @@
|
|||||||
AND P.DEL_FLG = '0'
|
AND P.DEL_FLG = '0'
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
<insert id="insertEstimateDrawingItemCopy" parameterType="com.interplug.qcast.biz.estimate.dto.EstimateCopyRequest">
|
||||||
|
/* sqlid : com.interplug.qcast.biz.estimate.insertEstimateDrawingItemCopy */
|
||||||
|
INSERT INTO T_PART_DRAWING_ESTIMATE
|
||||||
|
(
|
||||||
|
OBJECT_NO
|
||||||
|
, PLAN_NO
|
||||||
|
, DISP_ORDER
|
||||||
|
, ITEM_ID
|
||||||
|
, AMOUNT
|
||||||
|
, LAST_EDIT_DATETIME
|
||||||
|
, LAST_EDIT_USER
|
||||||
|
)
|
||||||
|
SELECT
|
||||||
|
#{copyObjectNo} AS OBJECT_NO
|
||||||
|
, #{copyPlanNo} AS PLAN_NO
|
||||||
|
, PDE.DISP_ORDER
|
||||||
|
, PDE.ITEM_ID
|
||||||
|
, PDE.AMOUNT
|
||||||
|
, GETDATE() AS LAST_EDIT_DATETIME
|
||||||
|
, #{userId} AS LAST_EDIT_USER
|
||||||
|
FROM T_PART_DRAWING_ESTIMATE PDE WITH (NOLOCK)
|
||||||
|
WHERE PDE.OBJECT_NO = #{objectNo}
|
||||||
|
AND PDE.PLAN_NO = #{planNo}
|
||||||
|
</insert>
|
||||||
|
|
||||||
<update id="updatePlanConfirmSync" parameterType="com.interplug.qcast.biz.estimate.dto.PlanSyncResponse">
|
<update id="updatePlanConfirmSync" parameterType="com.interplug.qcast.biz.estimate.dto.PlanSyncResponse">
|
||||||
/* sqlid : com.interplug.qcast.biz.estimate.updatePlanConfirmSync */
|
/* sqlid : com.interplug.qcast.biz.estimate.updatePlanConfirmSync */
|
||||||
UPDATE T_PLAN
|
UPDATE T_PLAN
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user