| | |
| | | */ |
| | | @Override |
| | | @Cacheable(value = "qualityCache", key = "'getRecommendToIndexV2-'+#start+'-'+#platform+'-'+#version+'-'+#system") |
| | | public JSONArray getRecommendToIndexV2(long start, int count, String platform, String version, SystemEnum system) { |
| | | public List<GoodsDetailVO> getRecommendToIndexV2(long start, int count, String platform, String version, SystemEnum system) { |
| | | |
| | | // 返利金额2元以上; |
| | | Integer commision = 2; |
| | |
| | | return null; |
| | | } |
| | | |
| | | JSONArray array = new JSONArray(); |
| | | List<GoodsDetailVO> voList=new ArrayList<>(); |
| | | Gson gson = JsonUtil.getConvertBigDecimalToStringSubZeroBuilder(new GsonBuilder()).create(); |
| | | // 遍历列表数据 |
| | | // |
| | |
| | | |
| | | for (TaoBaoGoodsBrief taoBaoGoodsBrief : goodsList) { |
| | | GoodsDetailVO detailVO = GoodsDetailVOFactory.convertTaoBao(taoBaoGoodsBrief, paramsDTO); |
| | | array.add(gson.toJson(detailVO)); |
| | | voList.add(detailVO); |
| | | } |
| | | |
| | | return array; |
| | | return voList; |
| | | } |
| | | |
| | | @Override |