|
|
@@ -461,10 +461,17 @@ public class SecondGoodsServiceImpl extends ServiceImpl<SecondGoodsMapper, Secon
|
|
|
reportingVo.setDescription(secondGoods.getDescription());
|
|
|
}
|
|
|
// 处理举报凭证图片
|
|
|
- if (StringUtils.hasText(report.getReportEvidenceImg())) {
|
|
|
- List<String> urlList = Arrays.asList(report.getReportEvidenceImg().split(","));
|
|
|
- List<Map<String, Object>> imgList = processReportImages(urlList,1);
|
|
|
- reportingVo.setImgList(imgList);
|
|
|
+ // 查询图片信息
|
|
|
+ LambdaQueryWrapper<StoreImg> wrapper = new LambdaQueryWrapper<>();
|
|
|
+ wrapper.eq(StoreImg::getStoreId, report.getId());
|
|
|
+ wrapper.eq(StoreImg::getImgType, Constants.ImageType.SECOND_HAND_REPORT);
|
|
|
+ List<StoreImg> imgList = storeImgMapper.selectList(wrapper);
|
|
|
+ if (CollectionUtil.isNotEmpty(imgList)) {
|
|
|
+ // 提取图片URL
|
|
|
+ List<String> urlList = imgList.stream()
|
|
|
+ .map(StoreImg::getImgUrl)
|
|
|
+ .collect(Collectors.toList());
|
|
|
+ reportingVo.setImgList(processReportImages(urlList,1));
|
|
|
}
|
|
|
|
|
|
reportingVos.add(reportingVo);
|