Commit c8d04e60 authored by jianghaiming's avatar jianghaiming

update:set

parent 78b7cc05
......@@ -78,7 +78,7 @@ class MarketingGoodsService
}
$goodsSkuList = GoodsSku::getRecordMaster(['goods_sku_id' => $goodsSkuId]);
$goodsSkuList = array_column($goodsSkuList,null,'goods_sku_id');
$goodsSkuList = !empty($goodsSkuList) ? array_column($goodsSkuList,null,'goods_sku_id') : [];
$lastData = end($data);
$lastId = !empty($lastData['id']) ? $lastData['id'] : '';
......@@ -88,11 +88,11 @@ class MarketingGoodsService
}
$subShopList = SubShop::getRecordMaster(['shop_id' => $shopId]);
$subShopList = array_column($subShopList,null,'shop_id');
$subShopList = !empty($subShopList) ? array_column($subShopList,null,'shop_id') : [];
$marketingList = array_column($marketingList,null,'marketing_id');
$marketingList = !empty($marketingList) ? array_column($marketingList,null,'marketing_id') : [];
$lifeAccountId = array_column($goodsSkuList, 'life_account_id');
$lifeAccountId = !empty($goodsSkuList) ? array_column($goodsSkuList, 'life_account_id') : [];
$lifeAccountList = CommonService::getlifeAccountList(['life_account_id' => $lifeAccountId]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment