동일 품번 수주 시 프로젝트 생성 시점에 기존 엠봄 복사

This commit is contained in:
2026-02-23 11:49:35 +09:00
parent aefb2d2858
commit ba66f2b219
5 changed files with 252 additions and 50 deletions

View File

@@ -1163,14 +1163,14 @@ public class ProductionPlanningController extends BaseService {
// 할당된 BOM도 없으면 Machine 이외 제품은 템플릿 확인
String productCode = CommonUtils.checkNull(projectInfo.get("PRODUCT_CODE"));
String partNo = CommonUtils.checkNull(projectInfo.get("PART_NO"));
if(!"0000928".equals(productCode) && !"".equals(partNo)) {
System.out.println("Machine 이외 제품 - 템플릿 조회 시도");
Map<String, Object> templateParam = new HashMap<>();
templateParam.put("partNo", partNo);
Map<String, Object> template = commonService.selectOne("productionplanning.getLatestMbomTemplateByPartNo", request, templateParam);
if(template != null && !template.isEmpty()) {
bomReportObjid = CommonUtils.checkNull(template.get("TEMPLATE_HEADER_OBJID"));
bomDataType = "TEMPLATE";