Commit c7110444 authored by hangjun83's avatar hangjun83

药明康德更新

parent 90d2c2fb
...@@ -249,14 +249,14 @@ class WuxiApiService extends PlatformAbstractService ...@@ -249,14 +249,14 @@ class WuxiApiService extends PlatformAbstractService
'stock_status' => $datas['r_stock'] > 0 ? 'INSTOCK' : 'OUTSTOCK', 'stock_status' => $datas['r_stock'] > 0 ? 'INSTOCK' : 'OUTSTOCK',
]; ];
$tempData['package'] = []; $tempData['packages'] = [];
if(isset($metaData['packageList'][$datas['r_code']])){ if(isset($metaData['packageList'][$datas['r_code']])){
$package = $metaData['packageList'][$datas['r_code']]; $package = $metaData['packageList'][$datas['r_code']];
$pack['unit_description'] = $package['p_pack_unit']; $pack['unit_description'] = $package['p_pack_unit'];
$pack['package_status'] = $package['p_status'] == '1' && $package['p_show'] == '1' ? 'ACTIVE' : 'INACTIVE'; $pack['package_status'] = $package['p_status'] == '1' && $package['p_show'] == '1' && $package['p_if_big'] == 0 ? 'ACTIVE' : 'INACTIVE';
$tempData['status'] = $package['p_show'] == '1' ? 'ACTIVE' : 'INACTIVE'; $tempData['status'] = $package['p_status'] == '1' && $package['p_show'] == '1' && $package['p_if_big'] == 0 ? 'ACTIVE' : 'INACTIVE';
$pack['inventorys'] = [ $pack['inventorys'] = [
'package_quantity' => $package['p_stock'], 'package_quantity' => $package['p_stock'],
...@@ -282,7 +282,7 @@ class WuxiApiService extends PlatformAbstractService ...@@ -282,7 +282,7 @@ class WuxiApiService extends PlatformAbstractService
'status' => 'INACTIVE' 'status' => 'INACTIVE'
]; ];
array_push($tempData['package'],$pack); array_push($tempData['packages'],$pack);
} }
array_push($mergeData,$tempData); array_push($mergeData,$tempData);
......
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