Commit afa1db0c authored by hangjun83's avatar hangjun83

药明康德更新

parent a6eeb38e
...@@ -351,7 +351,6 @@ class WuxiLabService ...@@ -351,7 +351,6 @@ class WuxiLabService
try{ try{
$result = $this->apiService->pushBatchUpdateProduct($updateData); $result = $this->apiService->pushBatchUpdateProduct($updateData);
if($result){ if($result){
$storeEntries = [];
//处理更新不成功的商品 //处理更新不成功的商品
if(isset($result['errorProduct']) && !empty($result['errorProduct'])){ if(isset($result['errorProduct']) && !empty($result['errorProduct'])){
$storeEntries = $this->apiService->getPlatformDataEntries('wuxiLab_not_exist_products','data_values'); $storeEntries = $this->apiService->getPlatformDataEntries('wuxiLab_not_exist_products','data_values');
...@@ -392,7 +391,8 @@ class WuxiLabService ...@@ -392,7 +391,8 @@ class WuxiLabService
$this->apiService->storePlatformDataEntries('wuxiLab_not_exist_products',['products' => $storeEntries['products']]); $this->apiService->storePlatformDataEntries('wuxiLab_not_exist_products',['products' => $storeEntries['products']]);
} }
//更新成功,批量更新包装规格 //更新成功,批量更新包装规格
/*$storeEntries = $this->apiService->getPlatformDataEntries('wuxiLab_do_not_update_products','data_values'); $storeEntries = $this->apiService->getPlatformDataEntries('wuxiLab_do_not_update_products','data_values');
if(isset($storeEntries) && !empty($storeEntries)){
if(!is_null($storeEntries) && count($storeEntries['products']) >= $this->apiService->getPlatformInfo('platform_params')['excelCreateLimit']){ if(!is_null($storeEntries) && count($storeEntries['products']) >= $this->apiService->getPlatformInfo('platform_params')['excelCreateLimit']){
$this->apiService->pushQueue([ $this->apiService->pushQueue([
'params' => ['products' => $storeEntries['products'],'type' => 'package'], 'params' => ['products' => $storeEntries['products'],'type' => 'package'],
...@@ -400,7 +400,8 @@ class WuxiLabService ...@@ -400,7 +400,8 @@ class WuxiLabService
'method' => 'processProductsUpdateThroughtExcel' 'method' => 'processProductsUpdateThroughtExcel'
],'wuxilab_package'); ],'wuxilab_package');
$this->apiService->removePlatformDataEntries('wuxiLab_do_not_update_products'); $this->apiService->removePlatformDataEntries('wuxiLab_do_not_update_products');
}*/ }
}
//更新成功的商品 //更新成功的商品
foreach($result['successProduct'] as $successProduct){ foreach($result['successProduct'] as $successProduct){
if(!is_null($storeEntries) && !empty($storeEntries['products'])){ if(!is_null($storeEntries) && !empty($storeEntries['products'])){
......
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