同步商品添加特价商品标志

This commit is contained in:
liyj 2025-06-14 16:35:13 +08:00
parent 11eb0165ce
commit 1502460438
2 changed files with 4 additions and 0 deletions

View File

@ -142,6 +142,9 @@ public class ShopProductBase implements Serializable{
@TableField(updateStrategy=NOT_EMPTY)
private BigDecimal shop_weight;
@ApiModelProperty("是否特价商品,0否1是")
private String is_special;
@ApiModelProperty(value = "单价")
@TableField(updateStrategy=NOT_EMPTY)
private BigDecimal unit_price;

View File

@ -573,6 +573,7 @@ public abstract class SyncBaseThirdSxAbstract{
shopProductBase.setProduct_from(1005);// 商品来源(ENUM):1000-发布;1001-天猫;1002-淘宝;1003-阿里巴巴;1004-京东;1005-思迅;
shopProductBase.setProduct_add_time(currentDate.getTime());
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"))
&& "KG,kg,公斤".contains(jsonObj.getStr("unit"))){