// 保存文件
String saveName = ServletActionContext.getServletContext()
.getRealPath(path) + File.separator + uuidName;
ImageUtil.thumbnails(logo[i], new File(saveName), 20);
// 更新特性IconUrl
MenuFeature menuFeature = menuFeatureService.findById(id);
String oldLogoPath = ServletActionContext.getServletContext()
.getRealPath(menuFeature.getImageUrl());
File oldLogoFile = new File(oldLogoPath == null ? "" : oldLogoPath);
if (oldLogoFile.exists())
{
oldLogoFile.delete();
}
menuFeature.setImageUrl(path + "/" + uuidName);
menuFeatureService.update(menuFeature);
}
json.put(DwzAjaxJsonUtil.KEY_NAVTABID, navTabId);
}
else