pipeLineElementManager.update(pipeLineElement);
return new ModelAndView("redirect:/lookPipeLineElement.html?detailType="+detailType+"&objectId="+objectId);
}
else{
VisualInspection visualInspection=new VisualInspection();
visualInspection.setInspectionDescription("");
visualInspection.setInspectionValidity(false);
visualInspectionManager.insert(visualInspection);
pipeLineElement.setVisualInspection(visualInspection);
pipeLineElementManager.insert(pipeLineElement);
ObjectInspection objectInspection=objectInspectionManager.getObjectInspectionBy(objectId);
objectInspection.getPipeLineList().add(pipeLineElement);