Commit 89ebc295 authored by hj's avatar hj

更新提交

parent b2514338
......@@ -286,8 +286,12 @@ class RhawnOrdersService
$dpdetail = $this->rhawnSorderRepository->getOrderDispatch($orderNumber);
$soItemIds = [];
if($dpdetail){
foreach($dpdetail as $detail){
$soItemIds[] = $detail['si_id'];
foreach($dpdetail as $key => &$detail){
if($detail['dp_status'] == 2){
$soItemIds[] = $detail['si_id'];
}else{
unset($dpdetail[$key]);
}
}
$soItems = app(RhawnSoitemsRepositoryEloquent::class)->getSorderItemFromItemId($soItemIds);
if(!$soItems){
......
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