评测去除多余字段
This commit is contained in:
-6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user