|
|
@ -47,10 +47,8 @@ import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.IOException; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.*; |
|
|
|
import java.util.LinkedHashMap; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @author hupeng |
|
|
|
* @author hupeng |
|
|
|
* @date 2022-09-21 |
|
|
|
* @date 2022-09-21 |
|
|
@ -133,12 +131,15 @@ public class YxEvaluationServiceImpl extends BaseServiceImpl<YxEvaluationMapper, |
|
|
|
list.forEach(evaluationDTO->{ |
|
|
|
list.forEach(evaluationDTO->{ |
|
|
|
YxStoreProduct yxStoreProduct = yxStoreProductService.getProductInfo(Long.valueOf(evaluationDTO.getProduct())); |
|
|
|
YxStoreProduct yxStoreProduct = yxStoreProductService.getProductInfo(Long.valueOf(evaluationDTO.getProduct())); |
|
|
|
evaluationDTO.setProductInfo(yxStoreProduct); |
|
|
|
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; |
|
|
|
return list; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* app首页评测列表 |
|
|
|
*评测列表 |
|
|
|
* @return List |
|
|
|
* @return List |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -163,7 +164,9 @@ public class YxEvaluationServiceImpl extends BaseServiceImpl<YxEvaluationMapper, |
|
|
|
EvaluationDTO evaluationDTO=generator.convert(this.baseMapper.selectById(id), EvaluationDTO.class); |
|
|
|
EvaluationDTO evaluationDTO=generator.convert(this.baseMapper.selectById(id), EvaluationDTO.class); |
|
|
|
YxStoreProduct yxStoreProduct = yxStoreProductService.getProductInfo(Long.valueOf(evaluationDTO.getProduct())); |
|
|
|
YxStoreProduct yxStoreProduct = yxStoreProductService.getProductInfo(Long.valueOf(evaluationDTO.getProduct())); |
|
|
|
evaluationDTO.setProductInfo(yxStoreProduct); |
|
|
|
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 evaluationDTO; |
|
|
|
return evaluationDTO; |
|
|
|
// return generator.convert(this.baseMapper.selectById(id), EvaluationDTO.class);
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|