|
@@ -74,21 +74,19 @@ public class PlatformUserViolationServiceImpl extends ServiceImpl<SecondUserViol
|
|
|
|
|
|
|
|
// 查询图片信息
|
|
// 查询图片信息
|
|
|
LambdaQueryWrapper<StoreImg> wrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<StoreImg> wrapper = new LambdaQueryWrapper<>();
|
|
|
- wrapper.eq(StoreImg::getStoreId, item.getBusinessId());
|
|
|
|
|
|
|
+ wrapper.eq(StoreImg::getStoreId, item.getId());
|
|
|
wrapper.eq(StoreImg::getImgType, Constants.ImageType.SECOND_HAND_REPORT);
|
|
wrapper.eq(StoreImg::getImgType, Constants.ImageType.SECOND_HAND_REPORT);
|
|
|
List<StoreImg> imgList = storeImgMapper.selectList(wrapper);
|
|
List<StoreImg> imgList = storeImgMapper.selectList(wrapper);
|
|
|
|
|
|
|
|
- for (int i = 0; i < imgList.size(); i++) {
|
|
|
|
|
|
|
+ for (StoreImg img : imgList) {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
-
|
|
|
|
|
- String fileType = imgList.get(i).getImgUrl().substring(imgList.get(i).getImgUrl().lastIndexOf(".") + 1);
|
|
|
|
|
-
|
|
|
|
|
|
|
+ String fileType = img.getImgUrl().substring(img.getImgUrl().lastIndexOf(".") + 1);
|
|
|
if (videoFileType.contains(fileType.toLowerCase())) {
|
|
if (videoFileType.contains(fileType.toLowerCase())) {
|
|
|
map.put("type", "video");
|
|
map.put("type", "video");
|
|
|
} else {
|
|
} else {
|
|
|
map.put("type", "image");
|
|
map.put("type", "image");
|
|
|
}
|
|
}
|
|
|
- map.put("imgUrl", imgList.get(i).getImgUrl());
|
|
|
|
|
|
|
+ map.put("imgUrl", img.getImgUrl());
|
|
|
list.add(map);
|
|
list.add(map);
|
|
|
}
|
|
}
|
|
|
item.setImgList(list);
|
|
item.setImgList(list);
|