eric2h 4 лет назад
Родитель
Сommit
0b44d2cdaa
1 измененных файлов с 5 добавлено и 2 удалено
  1. 5 2
      app/Services/RejectedBillService.php

+ 5 - 2
app/Services/RejectedBillService.php

@@ -21,6 +21,7 @@ use Carbon\Carbon;
 use App\Traits\ServiceAppAop;
 use Illuminate\Database\Eloquent\Model;
 use Illuminate\Database\Query\Builder;
+use Illuminate\Support\Facades\Auth;
 use Overtrue\LaravelPinyin\Facades\Pinyin;
 
 
@@ -74,7 +75,10 @@ class RejectedBillService
         if ($updates && count($updates) > 1) $this->batchUpdate($updates);
         //是否入库
         $updateParams=$this->getNeedUpdateLoadedStatusByWms($asnHerders);
-        if ($updateParams && count($updateParams) > 1) $this->batchUpdate($updateParams);
+        if ($updateParams && count($updateParams) > 1){
+            $this->batchUpdate($updateParams);
+            app('LogService')->log(__METHOD__,__FUNCTION__,json_encode($updateParams));
+        }
     }
 
     public function getNeedUpdateLoadedStatusByWms($asnHerders)
@@ -129,7 +133,6 @@ class RejectedBillService
                        ];
                    }
                 }
-
                unset($result);
             }
         }