// 保存文件
String saveName = ServletActionContext.getServletContext()
.getRealPath(path) + File.separator + uuidName;
ImageUtil.thumbnails(logo[i], new File(saveName), 150);
// 更新兑换物品PicUrl
ConvertGoods convertGoods = convertGoodsService.findById(id);
String oldLogoPath = ServletActionContext.getServletContext()
.getRealPath(convertGoods.getPicUrl());
File oldLogoFile = new File(oldLogoPath == null ? "" : oldLogoPath);
if (oldLogoFile.exists())
{
oldLogoFile.delete();
}
convertGoods.setPicUrl(path + "/" + uuidName);
convertGoodsService.update(convertGoods);
}
json.put(DwzAjaxJsonUtil.KEY_NAVTABID, navTabId);
}
else