update
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user