update
This commit is contained in:
parent
4bc9778d38
commit
f595b2dd68
|
|
@ -1856,7 +1856,7 @@ public class AdminAction {
|
||||||
map.put("factoryList", factoryList);
|
map.put("factoryList", factoryList);
|
||||||
String status = SysUserEnum.failed101.getKey();
|
String status = SysUserEnum.failed101.getKey();
|
||||||
try {
|
try {
|
||||||
if (!fileUpload.isEmpty()) {
|
if (fileUpload != null) {
|
||||||
String newImgName = System.currentTimeMillis() + ".jpg";
|
String newImgName = System.currentTimeMillis() + ".jpg";
|
||||||
IfishFileUtils.uploadFile(IfishFileDirectory.path_img_goods, newImgName, fileUpload);
|
IfishFileUtils.uploadFile(IfishFileDirectory.path_img_goods, newImgName, fileUpload);
|
||||||
factoryList.setBackground(newImgName);
|
factoryList.setBackground(newImgName);
|
||||||
|
|
@ -1867,6 +1867,7 @@ public class AdminAction {
|
||||||
return new ModelAndView("redirect:/page/admin/factoryList.do");
|
return new ModelAndView("redirect:/page/admin/factoryList.do");
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
map.put("status", status);
|
map.put("status", status);
|
||||||
log.error("updateFactory:error message:{}", e.toString());
|
log.error("updateFactory:error message:{}", e.toString());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue