|
|
|
|
@ -80,16 +80,8 @@ public class DustPatrolRectifyController {
|
|
|
|
|
public CommonResult<DustPatrolRectifyRespVO> getDustPatrolRectify(@RequestParam("id") String id) {
|
|
|
|
|
DustPatrolRectifyDO dustPatrolRectify = dustPatrolRectifyService.getDustPatrolRectify(id);
|
|
|
|
|
DustPatrolRectifyRespVO respVO = BeanUtils.toBean(dustPatrolRectify, DustPatrolRectifyRespVO.class);
|
|
|
|
|
String[] strings = dustPatrolRectify.getRectifyImg().split(",");
|
|
|
|
|
List<String> arrayList = new ArrayList<>();
|
|
|
|
|
for (String imgId : strings) {
|
|
|
|
|
CommonResult<String> urlById = fileApi.getUrlById(imgId);
|
|
|
|
|
if (urlById.getData()!=null){
|
|
|
|
|
String url = urlById.getData();
|
|
|
|
|
arrayList.add(url);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
respVO.setRectifyImgs(arrayList);
|
|
|
|
|
List<String> list = Arrays.stream(dustPatrolRectify.getRectifyImg().split(",")).toList();
|
|
|
|
|
respVO.setRectifyImgs(list);
|
|
|
|
|
return success(respVO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -102,15 +94,7 @@ public class DustPatrolRectifyController {
|
|
|
|
|
List<DustPatrolRectifyRespVO> list = result.getList();
|
|
|
|
|
for (DustPatrolRectifyRespVO respVO : list) {
|
|
|
|
|
if (respVO.getRectifyImg() != null){
|
|
|
|
|
List<String> strings = Arrays.stream(respVO.getRectifyImg().split(",")).toList();
|
|
|
|
|
List<String> urls = new ArrayList<>();
|
|
|
|
|
for (String id : strings) {
|
|
|
|
|
CommonResult<String> urlById = fileApi.getUrlById(id);
|
|
|
|
|
if (urlById.getData()!=null){
|
|
|
|
|
String url = urlById.getData();
|
|
|
|
|
urls.add(url);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
List<String> urls = Arrays.stream(respVO.getRectifyImg().split(",")).toList();
|
|
|
|
|
respVO.setRectifyImgs(urls);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|