봄 복사 기능 러프하게 구현(테스트 아직 못함) 결과 일단 저장
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user