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,15 +391,17 @@ class WuxiLabService ...@@ -392,15 +391,17 @@ 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(!is_null($storeEntries) && count($storeEntries['products']) >= $this->apiService->getPlatformInfo('platform_params')['excelCreateLimit']){ if(isset($storeEntries) && !empty($storeEntries)){
$this->apiService->pushQueue([ if(!is_null($storeEntries) && count($storeEntries['products']) >= $this->apiService->getPlatformInfo('platform_params')['excelCreateLimit']){
'params' => ['products' => $storeEntries['products'],'type' => 'package'], $this->apiService->pushQueue([
'consumer' => __CLASS__, 'params' => ['products' => $storeEntries['products'],'type' => 'package'],
'method' => 'processProductsUpdateThroughtExcel' 'consumer' => __CLASS__,
],'wuxilab_package'); 'method' => 'processProductsUpdateThroughtExcel'
$this->apiService->removePlatformDataEntries('wuxiLab_do_not_update_products'); ],'wuxilab_package');
}*/ $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