提交 2a52c027 authored 作者: zhengfg's avatar zhengfg

修改耐克价格

上级 817c63b0
...@@ -36,8 +36,14 @@ public class TbCfItemShippedEntity implements Serializable { ...@@ -36,8 +36,14 @@ public class TbCfItemShippedEntity implements Serializable {
*/ */
private String expressId; private String expressId;
/**
* 商品ID
*/
private String itemId; private String itemId;
/**
* 商品品名
*/
private String descripitionName; private String descripitionName;
public static long getSerialVersionUID() { public static long getSerialVersionUID() {
......
...@@ -179,7 +179,7 @@ public class SpiderUtil { ...@@ -179,7 +179,7 @@ public class SpiderUtil {
String currentPrice = itemDetail.getString("currentPrice"); String currentPrice = itemDetail.getString("currentPrice");
//转换汇率 //转换汇率
currentPrice= exchangeRate(currentPrice); currentPrice= exchangeRate(currentPrice);
productResponse.setPrice(currentPrice); productResponse.setPrice(fullPrice);
JSONArray skusArr = itemDetail.getJSONArray("skus"); JSONArray skusArr = itemDetail.getJSONArray("skus");
//获取商品尺码属性,同时记录下skuid和尺码关系 //获取商品尺码属性,同时记录下skuid和尺码关系
Map<String, String> sizeSkuIdMapping = new HashMap<>(16); Map<String, String> sizeSkuIdMapping = new HashMap<>(16);
...@@ -216,12 +216,13 @@ public class SpiderUtil { ...@@ -216,12 +216,13 @@ public class SpiderUtil {
originalPrice.setSkuStr(skuStr + customizeId + ";"); originalPrice.setSkuStr(skuStr + customizeId + ";");
originalPrice.setPrice(fullPrice); originalPrice.setPrice(fullPrice);
originalPriceList.add(originalPrice); originalPriceList.add(originalPrice);
boolean b = itemDetail.getBoolean("discounted");
if (itemDetail.getBoolean("discounted")) { if (itemDetail.getBoolean("discounted")) {
productResponse.setPromotionFlag(true); productResponse.setPromotionFlag(true);
productResponse.setSalePrice(currentPrice); productResponse.setSalePrice(currentPrice);
ProductPromotion productPromotion = new ProductPromotion(); ProductPromotion productPromotion = new ProductPromotion();
productPromotion.setSkuStr(skuStr + customizeId + ";"); productPromotion.setSkuStr(skuStr + customizeId + ";");
productPromotion.setPrice(currentPrice); productPromotion.setPrice(fullPrice);
promotionList.add(productPromotion); promotionList.add(productPromotion);
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论