评测去除多余字段

This commit is contained in:
sj
2022-10-28 17:39:58 +08:00
parent f46f56e5b0
commit a0a6040437
@@ -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);