E-BOM 확인/수정 품목추가로직수정

This commit is contained in:
Johngreen
2025-10-27 17:11:57 +09:00
parent 588fef91ce
commit af1c73345d
6 changed files with 160 additions and 87 deletions

View File

@@ -1217,10 +1217,15 @@ public class PartMngService extends BaseService {
try{
System.out.println("standardBOMInfo : "+standardBOMInfo);
Map sqlParamMap = new HashMap();
sqlParamMap.put("bomReportObjId", CommonUtils.checkNull(standardBOMInfo.get("OBJID")));
//sqlParamMap.put("search_type", "working"); //bom조회 working조건 231208
sqlParamMap.put("search_type", CommonUtils.checkNull(standardBOMInfo.get("actionType")));
Map sqlParamMap = new HashMap();
sqlParamMap.put("bomReportObjId", CommonUtils.checkNull(standardBOMInfo.get("OBJID")));
//sqlParamMap.put("search_type", "working"); //bom조회 working조건 231208
// actionType과 search_type 둘 다 체크 (우선순위: search_type > actionType)
String searchType = CommonUtils.checkNull(standardBOMInfo.get("search_type"));
if(searchType.isEmpty()) {
searchType = CommonUtils.checkNull(standardBOMInfo.get("actionType"));
}
sqlParamMap.put("search_type", searchType);
resultList = sqlSession.selectList("partMng.getBOMTreeList", sqlParamMap);
int maxLevel = 0;