| | |
| | | import com.google.gson.GsonBuilder; |
| | | import com.yeshi.fanli.dao.mybatis.lable.LabelGoodsMapper; |
| | | import com.yeshi.fanli.dao.mybatis.lable.QualityFactoryMapper; |
| | | import com.yeshi.fanli.dto.ConfigParamsDTO; |
| | | import com.yeshi.fanli.dto.GoodsMoneyConfigParamsDTO; |
| | | import com.yeshi.fanli.entity.bus.lable.Label; |
| | | import com.yeshi.fanli.entity.bus.lable.LabelGoods; |
| | | import com.yeshi.fanli.entity.bus.lable.QualityFactory; |
| | |
| | | */ |
| | | @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(); |
| | | // 遍历列表数据 |
| | | // |
| | |
| | | } catch (Exception e) { |
| | | } |
| | | |
| | | ConfigParamsDTO paramsDTO = orderHongBaoMoneyComputeService.getShowComputeRate(platform, version,system); |
| | | GoodsMoneyConfigParamsDTO paramsDTO = orderHongBaoMoneyComputeService.getShowComputeRate(platform, version,system); |
| | | |
| | | for (TaoBaoGoodsBrief taoBaoGoodsBrief : goodsList) { |
| | | GoodsDetailVO detailVO = GoodsDetailVOFactory.convertTaoBao(taoBaoGoodsBrief, paramsDTO); |
| | | array.add(gson.toJson(detailVO)); |
| | | voList.add(detailVO); |
| | | } |
| | | |
| | | return array; |
| | | return voList; |
| | | } |
| | | |
| | | @Override |