diff --git a/src/com/pms/service/ProductionPlanningService.java b/src/com/pms/service/ProductionPlanningService.java index 8012583..5df3eb3 100644 --- a/src/com/pms/service/ProductionPlanningService.java +++ b/src/com/pms/service/ProductionPlanningService.java @@ -1589,25 +1589,26 @@ public class ProductionPlanningService { } } - // DB 커밋 성공 후 ERP BOM 동기화 (ERP 실패해도 DB는 유지) - if(result && mbomHeaderObjidForErp != null && !mbomHeaderObjidForErp.isEmpty()) { - try { - System.out.println("===================================="); - System.out.println("M-BOM 저장 후 ERP BOM 동기화 시작"); - System.out.println("MBOM_HEADER_OBJID: " + mbomHeaderObjidForErp); - System.out.println("===================================="); - - Map erpResult = batchService.syncMbomBomToErp(mbomHeaderObjidForErp); - if(erpResult != null && Boolean.TRUE.equals(erpResult.get("success"))) { - System.out.println("ERP BOM 동기화 성공: " + erpResult.get("message")); - } else { - System.err.println("ERP BOM 동기화 실패: " + (erpResult != null ? erpResult.get("message") : "결과 없음")); - } - } catch(Exception erpEx) { - System.err.println("ERP BOM 동기화 오류: " + erpEx.getMessage()); - erpEx.printStackTrace(); - } - } + // [임시 주석] DB 커밋 성공 후 ERP BOM 동기화 (검증 전이라 자동 호출 비활성화) + // 수동 동기화는 /admin/syncMbomBomToErp.do 로 가능. 검증 완료 후 주석 해제. + // if(result && mbomHeaderObjidForErp != null && !mbomHeaderObjidForErp.isEmpty()) { + // try { + // System.out.println("===================================="); + // System.out.println("M-BOM 저장 후 ERP BOM 동기화 시작"); + // System.out.println("MBOM_HEADER_OBJID: " + mbomHeaderObjidForErp); + // System.out.println("===================================="); + // + // Map erpResult = batchService.syncMbomBomToErp(mbomHeaderObjidForErp); + // if(erpResult != null && Boolean.TRUE.equals(erpResult.get("success"))) { + // System.out.println("ERP BOM 동기화 성공: " + erpResult.get("message")); + // } else { + // System.err.println("ERP BOM 동기화 실패: " + (erpResult != null ? erpResult.get("message") : "결과 없음")); + // } + // } catch(Exception erpEx) { + // System.err.println("ERP BOM 동기화 오류: " + erpEx.getMessage()); + // erpEx.printStackTrace(); + // } + // } return result; }