|
|
@@ -91,7 +91,7 @@ public class APIService { |
|
|
|
|
|
|
|
GoodTypeSynchronous(item);//同步云端商品分类信息 |
|
|
|
|
|
|
|
GoodPropSynchronous(item.goodsAttributeList);//同步云端商品属性 |
|
|
|
GoodPropSynchronous(item.goodsTypeId,item.goodsAttributeList);//同步云端商品属性 |
|
|
|
|
|
|
|
GoodInfoSynchronous(item,goods);//同步云端商品信息 |
|
|
|
|
|
|
@@ -115,7 +115,7 @@ public class APIService { |
|
|
|
* 同步云端商品属性到本地 |
|
|
|
* @param goodsAttributeList |
|
|
|
*/ |
|
|
|
private static void GoodPropSynchronous( List<GoodsAttributeList> goodsAttributeList){ |
|
|
|
private static void GoodPropSynchronous(String goodsTypeId, List<GoodsAttributeList> goodsAttributeList){ |
|
|
|
goodsAttributeList.forEach(goodProperty->{ |
|
|
|
//属性添加 |
|
|
|
BPA_GOODPROPERTY bpa_goodproperty = new BPA_GOODPROPERTY(); |
|
|
@@ -123,6 +123,7 @@ public class APIService { |
|
|
|
bpa_goodproperty.parentid ="0"; |
|
|
|
bpa_goodproperty.id = goodProperty.goodsAttributeId; |
|
|
|
bpa_goodproperty.userID="超级管理员"; |
|
|
|
bpa_goodproperty.GoodsTypeId=goodsTypeId; |
|
|
|
QueryDB.AddGoodsProperty(bpa_goodproperty); |
|
|
|
|
|
|
|
//子属性添加 |
|
|
|