Commit 828b7aa7 authored by 竹天卫's avatar 竹天卫

安全隐患 多个照片上传

parent cae36f9e
...@@ -81,8 +81,11 @@ public class TSafeTroubleServiceImpl extends ServiceImpl<TSafeTroubleMapper, TSa ...@@ -81,8 +81,11 @@ public class TSafeTroubleServiceImpl extends ServiceImpl<TSafeTroubleMapper, TSa
//保存隐患图片 //保存隐患图片
List<MultipartFile> photos = ((MultipartHttpServletRequest) request).getFiles("photos"); List<MultipartFile> photos = ((MultipartHttpServletRequest) request).getFiles("photos");
if (photos != null && photos.size() > 0) {
return saveImg(TSafeTroubleImg.ImgType.YH, safeTrouble.getUid(), photos); return saveImg(TSafeTroubleImg.ImgType.YH, safeTrouble.getUid(), photos);
} }
return R.ok();
}
/** /**
...@@ -101,8 +104,11 @@ public class TSafeTroubleServiceImpl extends ServiceImpl<TSafeTroubleMapper, TSa ...@@ -101,8 +104,11 @@ public class TSafeTroubleServiceImpl extends ServiceImpl<TSafeTroubleMapper, TSa
//保存隐患图片 //保存隐患图片
List<MultipartFile> photos = ((MultipartHttpServletRequest) request).getFiles("photos"); List<MultipartFile> photos = ((MultipartHttpServletRequest) request).getFiles("photos");
if (photos != null && photos.size() > 0) {
return saveImg(TSafeTroubleImg.ImgType.ZG, safeTrouble.getUid(), photos); return saveImg(TSafeTroubleImg.ImgType.ZG, safeTrouble.getUid(), photos);
} }
return R.ok();
}
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment