수주등록 견적서 내용 기본입력되도록 수정

This commit is contained in:
2025-11-11 16:44:35 +09:00
parent 2bcc39ff65
commit da883f0007
5 changed files with 222 additions and 17 deletions

View File

@@ -2440,17 +2440,9 @@ public class ContractMgmtController {
Map resultMap = new HashMap();
try {
// 결재완료 상태인 경우 최종 견적서 템플릿에서 품목 조회
String useEstimateTemplate = CommonUtils.checkNull(paramMap.get("useEstimateTemplate"));
List<Map> items = null;
if("Y".equals(useEstimateTemplate)) {
// 최종 견적서 템플릿의 품목 조회
items = contractMgmtService.getEstimateTemplateItemsForOrder(paramMap);
} else {
// 기존 방식: CONTRACT_ITEM에서 조회
items = contractMgmtService.getContractItems(paramMap);
}
// getContractItems()에서 ORDER_* 정보가 없으면 자동으로 견적서에서 가져옴
// 일반 견적서와 장비 견적서 모두 처리 가능
List<Map> items = contractMgmtService.getContractItems(paramMap);
resultMap.put("result", "success");
resultMap.put("items", items);