생산관리_M-BOM관리쪽 e-bom팝업완성

This commit is contained in:
Johngreen
2025-10-29 11:58:56 +09:00
parent 91b97be376
commit 8954ae559e
5 changed files with 134 additions and 0 deletions

View File

@@ -725,6 +725,36 @@ public class ProductionPlanningService {
}
}
/**
* PROJECT_MGMT에서 E-BOM 제거 (PART_OBJID를 null로 설정)
* @param projectMgmtObjid
* @return
* @throws Exception
*/
public int removeEbomFromProject(String projectMgmtObjid) throws Exception {
SqlSession sqlSession = null;
try {
sqlSession = SqlMapConfig.getInstance().getSqlSession();
Map<String, Object> paramMap = new HashMap<>();
paramMap.put("projectMgmtObjid", projectMgmtObjid);
int result = sqlSession.update("productionplanning.removeEbomFromProject", paramMap);
sqlSession.commit();
return result;
} catch(Exception e) {
if(sqlSession != null) {
sqlSession.rollback();
}
throw e;
} finally {
if(sqlSession != null) {
sqlSession.close();
}
}
}
/**
* E-BOM 정보 조회
* @param bomReportObjid