|
@@ -387,6 +387,8 @@ public class WorkOrderManageController {
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
return new AjaxMessage<>(ResultStatus.ERROR, e.getMessage());
|
|
return new AjaxMessage<>(ResultStatus.ERROR, e.getMessage());
|
|
}
|
|
}
|
|
|
|
+ }else{
|
|
|
|
+ return new AjaxMessage<>(ResultStatus.ERROR, "上传文件不能为空");
|
|
}
|
|
}
|
|
return new AjaxMessage<>(ResultStatus.OK, avatar);
|
|
return new AjaxMessage<>(ResultStatus.OK, avatar);
|
|
}
|
|
}
|