|
@@ -159,6 +159,7 @@ class ShopTemplateClass extends BaseClass
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 复制商品:先主记录再子规格,销量清零,masterId/kindId 按映射重写
|
|
* 复制商品:先主记录再子规格,销量清零,masterId/kindId 按映射重写
|
|
|
|
|
+ * 商品按 mainId 归属,xhGoods 没有 shopId,不能按门店过滤
|
|
|
* @param int $tplMainId
|
|
* @param int $tplMainId
|
|
|
* @param int $tplShopId
|
|
* @param int $tplShopId
|
|
|
* @param array $newShop
|
|
* @param array $newShop
|
|
@@ -170,7 +171,6 @@ class ShopTemplateClass extends BaseClass
|
|
|
$map = [];
|
|
$map = [];
|
|
|
$list = GoodsClass::getAllByCondition([
|
|
$list = GoodsClass::getAllByCondition([
|
|
|
'mainId' => $tplMainId,
|
|
'mainId' => $tplMainId,
|
|
|
- 'shopId' => $tplShopId,
|
|
|
|
|
'delStatus' => 0,
|
|
'delStatus' => 0,
|
|
|
], 'id ASC');
|
|
], 'id ASC');
|
|
|
if (empty($list)) {
|
|
if (empty($list)) {
|