同步商品添加特价商品标志
This commit is contained in:
parent
11eb0165ce
commit
1502460438
@ -142,6 +142,9 @@ public class ShopProductBase implements Serializable{
|
|||||||
@TableField(updateStrategy=NOT_EMPTY)
|
@TableField(updateStrategy=NOT_EMPTY)
|
||||||
private BigDecimal shop_weight;
|
private BigDecimal shop_weight;
|
||||||
|
|
||||||
|
@ApiModelProperty("是否特价商品,0否,1是")
|
||||||
|
private String is_special;
|
||||||
|
|
||||||
@ApiModelProperty(value = "单价")
|
@ApiModelProperty(value = "单价")
|
||||||
@TableField(updateStrategy=NOT_EMPTY)
|
@TableField(updateStrategy=NOT_EMPTY)
|
||||||
private BigDecimal unit_price;
|
private BigDecimal unit_price;
|
||||||
|
|||||||
@ -573,6 +573,7 @@ public abstract class SyncBaseThirdSxAbstract{
|
|||||||
shopProductBase.setProduct_from(1005);// 商品来源(ENUM):1000-发布;1001-天猫;1002-淘宝;1003-阿里巴巴;1004-京东;1005-思迅;
|
shopProductBase.setProduct_from(1005);// 商品来源(ENUM):1000-发布;1001-天猫;1002-淘宝;1003-阿里巴巴;1004-京东;1005-思迅;
|
||||||
shopProductBase.setProduct_add_time(currentDate.getTime());
|
shopProductBase.setProduct_add_time(currentDate.getTime());
|
||||||
shopProductBase.setProduct_unit_price(BigDecimal.valueOf(jsonObj.getDouble("retail_price")));
|
shopProductBase.setProduct_unit_price(BigDecimal.valueOf(jsonObj.getDouble("retail_price")));
|
||||||
|
shopProductBase.setIs_special(jsonObj.getStr("isSpecial"));//是否特价商品
|
||||||
//商品总量
|
//商品总量
|
||||||
if(ObjectUtil.isNotEmpty(jsonObj.getStr("unit"))&&ObjectUtil.isNotEmpty(jsonObj.getStr("stock"))
|
if(ObjectUtil.isNotEmpty(jsonObj.getStr("unit"))&&ObjectUtil.isNotEmpty(jsonObj.getStr("stock"))
|
||||||
&& "KG,kg,公斤".contains(jsonObj.getStr("unit"))){
|
&& "KG,kg,公斤".contains(jsonObj.getStr("unit"))){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user