M-BOM 저장 후 ERP BOM 자동 동기화 호출 일시 비활성화

운영 검증 전이므로 자동 호출부 주석 처리. 수동 동기화는 /admin/syncMbomBomToErp.do 사용.
검증 완료 후 주석 해제 예정.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-27 18:35:35 +09:00
parent 2b5a7e5694
commit b466e3b910

View File

@@ -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<String, Object> 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<String, Object> 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;
}