商品同步 关联Id
This commit is contained in:
@@ -620,7 +620,7 @@ public class ShopSyncServiceImpl implements ShopSyncService {
|
||||
List<Map<String, Object>> mainMapList = new ArrayList<>();
|
||||
Map<Long, String> dataMap = new HashMap<>();
|
||||
Product newEntity = BeanUtil.copyProperties(mainEntity, Product.class);
|
||||
newEntity.setSyncId(mainEntity.getSyncId());
|
||||
newEntity.setSyncId(mainEntity.getId());
|
||||
newEntity.setShopId(shopId);
|
||||
newEntity.setCategoryId(newEntity.getCategoryId() != null ? categoryMap.get(shopId) : null);
|
||||
newEntity.setSpecId(newEntity.getSpecId() != null ? specMap.get(shopId) : null);
|
||||
|
||||
Reference in New Issue
Block a user