补充商品价格等详情字段
This commit is contained in:
parent
adb1b850dd
commit
ea0f926f07
@ -364,14 +364,16 @@ public class SyncThirdDataServiceImpl implements SyncThirdDataService {
|
||||
ShopProductItem shopProductItem = new ShopProductItem();
|
||||
shopProductItem.setStore_id(storeIdInt);
|
||||
shopProductItem.setCategory_id(categoryId);
|
||||
shopProductItem.setItem_unit_price((BigDecimal) jsonObj.get("first_category_name"));
|
||||
shopProductItem.setItem_advice_price((BigDecimal) jsonObj.get("first_category_name"));
|
||||
shopProductItem.setItem_market_price((BigDecimal) jsonObj.get("first_category_name"));
|
||||
shopProductItem.setItem_unit_points((BigDecimal) jsonObj.get("first_category_name"));
|
||||
shopProductItem.setItem_quantity((Integer) jsonObj.get("first_category_name")); // 库存
|
||||
//零售价
|
||||
shopProductItem.setItem_unit_price((BigDecimal) jsonObj.get("retail_price"));
|
||||
shopProductItem.setItem_advice_price((BigDecimal) jsonObj.get("retail_price"));
|
||||
shopProductItem.setItem_market_price((BigDecimal) jsonObj.get("retail_price"));
|
||||
//积分价
|
||||
shopProductItem.setItem_unit_points((BigDecimal) jsonObj.get("points"));
|
||||
shopProductItem.setItem_quantity((Integer) jsonObj.get("stock")); // 库存
|
||||
shopProductItem.setItem_quantity_frozen(0);
|
||||
shopProductItem.setItem_number((String) jsonObj.get("first_category_name"));// SKU商家编码
|
||||
shopProductItem.setItem_barcode((String) jsonObj.get("first_category_name")); // 条形码正常情况下就是货号
|
||||
shopProductItem.setItem_number((String) jsonObj.get("product_number"));// SKU商家编码
|
||||
shopProductItem.setItem_barcode((String) jsonObj.get("product_number")); // 条形码正常情况下就是货号
|
||||
shopProductItem.setItem_is_default(1);
|
||||
shopProductItem.setItem_enable(1);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user