Selaa lähdekoodia

修改同步报错问题

haozi 5 vuotta sitten
vanhempi
commit
6f5f209537
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      app/Services/RejectedBillService.php

+ 2 - 2
app/Services/RejectedBillService.php

@@ -66,10 +66,10 @@ Class RejectedBillService
     {
         //是否审核
         $updates=$this->getNeedUpdateCheckedStatusByWms($asnHerders);
-        if (count($updates) > 1) $this->batchUpdate($updates);
+        if ($updates && count($updates) > 1) $this->batchUpdate($updates);
         //是否入库
         $updateParams=$this->getNeedUpdateLoadedStatusByWms($asnHerders);
-        if (count($updateParams) > 1) $this->batchUpdate($updateParams);
+        if ($updateParams && count($updateParams) > 1) $this->batchUpdate($updateParams);
     }
 
     public function getNeedUpdateLoadedStatusByWms($asnHerders)