반제품, 원자재 소요량 엠봄선택 품명자동표시 오류 수정
This commit is contained in:
@@ -2102,4 +2102,27 @@ public class ProductionPlanningService {
|
||||
return 0.0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* M-BOM 목록 조회 (품명 포함)
|
||||
* 원자재소요량/반제품소요량 화면에서 품명 자동 입력용
|
||||
* @return M-BOM 목록 (OBJID, MBOM_NO, PART_NAME)
|
||||
*/
|
||||
public List<Map> getMbomListWithPartName() {
|
||||
List<Map> resultList = new ArrayList<>();
|
||||
SqlSession sqlSession = null;
|
||||
|
||||
try {
|
||||
sqlSession = SqlMapConfig.getInstance().getSqlSession();
|
||||
resultList = sqlSession.selectList("productionplanning.getMbomListWithPartName", new HashMap<>());
|
||||
// JSP에서 대문자 키로 접근하므로 변환
|
||||
resultList = CommonUtils.keyChangeUpperList(resultList);
|
||||
} catch(Exception e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
if(sqlSession != null) sqlSession.close();
|
||||
}
|
||||
|
||||
return resultList;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user