|
|
@@ -109,16 +109,18 @@ class ProductService extends BaseService
|
|
|
}
|
|
|
|
|
|
//生成价格表 shish 20210922
|
|
|
- public static function generatePriceTable($sjId, $shopId, $level)
|
|
|
+ public static function generatePriceTable($sjId, $shopId, $level,$mainId=0)
|
|
|
{
|
|
|
$status = 1;
|
|
|
|
|
|
//获取所有当前供应商的分类
|
|
|
//根据分类组装分类下的花材信息
|
|
|
- $classIds = ItemClassClass::getGhsItemClassAll($sjId);
|
|
|
+ //中央ID
|
|
|
+ $classIds = ItemClassClass::getGhsItemClassAll($mainId);
|
|
|
|
|
|
- $where['sjId'] = $sjId;
|
|
|
- $where['shopId'] = $shopId;
|
|
|
+// $where['sjId'] = $sjId;
|
|
|
+// $where['shopId'] = $shopId;
|
|
|
+ $where['mainId'] = $mainId;
|
|
|
$where['status'] = $status;
|
|
|
$where['delStatus'] = 0;
|
|
|
|
|
|
@@ -241,11 +243,13 @@ class ProductService extends BaseService
|
|
|
}
|
|
|
|
|
|
//生成条形码 linqh 20211227
|
|
|
- public static function generateBarcodeTable($sjId, $shopId)
|
|
|
+ public static function generateBarcodeTable($sjId, $shopId,$mainId=0)
|
|
|
{
|
|
|
- $classIds = ItemClassClass::getGhsItemClassAll($sjId);
|
|
|
- $where['sjId'] = $sjId;
|
|
|
- $where['shopId'] = $shopId;
|
|
|
+ //中央ID
|
|
|
+ $classIds = ItemClassClass::getGhsItemClassAll($mainId);
|
|
|
+// $where['sjId'] = $sjId;
|
|
|
+// $where['shopId'] = $shopId;
|
|
|
+ $where['mainId'] = $mainId;
|
|
|
$where['delStatus'] = 0;
|
|
|
$product = ProductClass::getAllByCondition($where, null, "*");
|
|
|
$data = [];
|