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