Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
Z
zion
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
zion
Commits
2a52c027
提交
2a52c027
authored
10月 21, 2019
作者:
zhengfg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改耐克价格
上级
817c63b0
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
10 行增加
和
3 行删除
+10
-3
TbCfItemShippedEntity.java
...diaoyun/zion/chinafrica/entity/TbCfItemShippedEntity.java
+7
-1
SpiderUtil.java
src/main/java/com/diaoyun/zion/master/util/SpiderUtil.java
+3
-2
没有找到文件。
src/main/java/com/diaoyun/zion/chinafrica/entity/TbCfItemShippedEntity.java
浏览文件 @
2a52c027
...
@@ -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
()
{
...
...
src/main/java/com/diaoyun/zion/master/util/SpiderUtil.java
浏览文件 @
2a52c027
...
@@ -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
(
current
Price
);
productResponse
.
setPrice
(
full
Price
);
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
(
current
Price
);
productPromotion
.
setPrice
(
full
Price
);
promotionList
.
add
(
productPromotion
);
promotionList
.
add
(
productPromotion
);
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论