|
|
|
@ -137,9 +137,6 @@ public class YxEvaluationServiceImpl extends BaseServiceImpl<YxEvaluationMapper,
|
|
|
|
|
list.forEach(evaluationDTO->{ |
|
|
|
|
YxStoreProduct yxStoreProduct = yxStoreProductService.getProductInfo(Long.valueOf(evaluationDTO.getProduct())); |
|
|
|
|
evaluationDTO.setProductInfo(yxStoreProduct); |
|
|
|
|
evaluationDTO.setAccessibilityImageArr(Arrays.asList(evaluationDTO.getAccessibilityImage().split(","))); |
|
|
|
|
evaluationDTO.setDisplayImageArr(Arrays.asList(evaluationDTO.getDisplayImage().split(","))); |
|
|
|
|
evaluationDTO.setFeelImageArr(Arrays.asList(evaluationDTO.getFeelImage().split(","))); |
|
|
|
|
}); |
|
|
|
|
return list; |
|
|
|
|
} |
|
|
|
@ -172,9 +169,6 @@ public class YxEvaluationServiceImpl extends BaseServiceImpl<YxEvaluationMapper,
|
|
|
|
|
EvaluationDTO evaluationDTO=generator.convert(this.baseMapper.selectById(id), EvaluationDTO.class); |
|
|
|
|
YxStoreProduct yxStoreProduct = yxStoreProductService.getProductInfo(Long.valueOf(evaluationDTO.getProduct())); |
|
|
|
|
evaluationDTO.setProductInfo(yxStoreProduct); |
|
|
|
|
evaluationDTO.setAccessibilityImageArr(Arrays.asList(evaluationDTO.getAccessibilityImage().split(","))); |
|
|
|
|
evaluationDTO.setDisplayImageArr(Arrays.asList(evaluationDTO.getDisplayImage().split(","))); |
|
|
|
|
evaluationDTO.setFeelImageArr(Arrays.asList(evaluationDTO.getFeelImage().split(","))); |
|
|
|
|
//是否收藏
|
|
|
|
|
boolean isCollect = yxEvaluationRelationService.isEvaluationRelation(id, uid); |
|
|
|
|
evaluationDTO.setIsCollect(isCollect); |
|
|
|
|