제작수량 오류 등 수정
This commit is contained in:
@@ -55,6 +55,9 @@ public class PartMngController {
|
||||
@Autowired
|
||||
CommonService commonService;
|
||||
|
||||
@Autowired
|
||||
com.pms.service.ProductionPlanningService productionPlanningService;
|
||||
|
||||
|
||||
@Autowired
|
||||
public void setProjectConceptService(ProjectConceptService service){
|
||||
@@ -1177,12 +1180,32 @@ public class PartMngController {
|
||||
List bomTreeList = null;
|
||||
|
||||
try{
|
||||
Map info = partMngService.getBOMStructureStandardInfo(request,paramMap);
|
||||
// search_type 파라미터를 info에 복사 (adding 상태 조회를 위해)
|
||||
if(paramMap.containsKey("search_type")) {
|
||||
info.put("search_type", paramMap.get("search_type"));
|
||||
String objId = CommonUtils.checkNull((String)paramMap.get("objId"));
|
||||
|
||||
// M-BOM인지 확인 (MBOM_HEADER 테이블에 존재하는지 체크)
|
||||
boolean isMbom = productionPlanningService.isMbomHeader(objId);
|
||||
|
||||
if(isMbom) {
|
||||
// M-BOM 트리 조회
|
||||
System.out.println("M-BOM 트리 조회: " + objId);
|
||||
bomTreeList = productionPlanningService.getSavedMbomTreeList(objId);
|
||||
} else {
|
||||
// E-BOM 트리 조회 (기존 로직)
|
||||
System.out.println("E-BOM 트리 조회: " + objId);
|
||||
Map info = partMngService.getBOMStructureStandardInfo(request,paramMap);
|
||||
|
||||
// info가 null이 아닐 때만 처리
|
||||
if(info != null) {
|
||||
// search_type 파라미터를 info에 복사 (adding 상태 조회를 위해)
|
||||
if(paramMap.containsKey("search_type")) {
|
||||
info.put("search_type", paramMap.get("search_type"));
|
||||
}
|
||||
bomTreeList = partMngService.getBOMPartTreeList(info);
|
||||
} else {
|
||||
System.out.println("E-BOM 정보를 찾을 수 없음: " + objId);
|
||||
bomTreeList = new ArrayList<Map>();
|
||||
}
|
||||
}
|
||||
bomTreeList = partMngService.getBOMPartTreeList(info);
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user