봄 복사 기능 러프하게 구현(테스트 아직 못함) 결과 일단 저장

This commit is contained in:
leeheejin
2025-11-17 10:03:29 +09:00
parent eff22bbc4c
commit c1921855e6
8 changed files with 859 additions and 242 deletions

View File

@@ -1782,6 +1782,44 @@ public class PartMngController {
return resultMap;
}
/**
* 품번으로 BOM OBJID 조회
* @param request
* @param paramMap
* @return
*/
@RequestMapping("/partMng/getBomObjIdByPartNo.do")
@ResponseBody
public Map<String, Object> getBomObjIdByPartNo(HttpServletRequest request, @RequestParam Map<String, Object> paramMap){
Map<String, Object> resultMap = new HashMap<String, Object>();
try{
String partNo = CommonUtils.checkNull(paramMap.get("partNo"));
if(partNo.isEmpty()) {
resultMap.put("OBJID", null);
return resultMap;
}
// 품번으로 BOM OBJID 조회
Map<String, Object> bomInfo = partMngService.getBomObjIdByPartNo(paramMap);
if(bomInfo != null) {
resultMap.put("OBJID", bomInfo.get("OBJID"));
resultMap.put("PART_NO", bomInfo.get("PART_NO"));
resultMap.put("PART_NAME", bomInfo.get("PART_NAME"));
} else {
resultMap.put("OBJID", null);
}
}catch(Exception e){
e.printStackTrace();
resultMap.put("OBJID", null);
}
return resultMap;
}
/**
* 품번 중복 체크 (PART_BOM_REPORT 테이블)
* @param request