생산관리_M-BOM관리쪽 e-bom팝업완성
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user