Ver Fonte

多表切块

Zhouzhendong há 3 anos atrás
pai
commit
2b89559c82
2 ficheiros alterados com 4 adições e 2 exclusões
  1. 1 1
      app/RejectedBill.php
  2. 3 1
      app/Services/OrderService.php

+ 1 - 1
app/RejectedBill.php

@@ -149,7 +149,7 @@ class RejectedBill extends Model
 
     function setIsLoaded_toWaitConfirm()
     {
-        if (config('api.jianshang_rejecteds_log_switch')) Controller::logS(__METHOD__, __FUNCTION__, "将待推单修改为待确认! 退单号:" . $this['logistic_number_return'], Auth::user()['id']);
+        if (config('api.jianshang_rejecteds_log_switch')) Controller::logS(__METHOD__, __FUNCTION__, "将待推单修改为待确认! 退单号:" . $this['logistic_number_return'], 0);
         $bill = RejectedBill::find($this['id']);
         $bill['is_loaded'] = 4;
         $bill->save();

+ 3 - 1
app/Services/OrderService.php

@@ -1201,7 +1201,9 @@ sql
         $date = $month ?: date("Y-m");
         if ($isToB) $type = "|B|";
         else $type = "|C|";
-        if (!Cache::has($date . $type . $owner)) $this->orderQuantityCompensationLogic($owner);
+        if (!Cache::has($date . $type . $owner)) {
+            $this->orderQuantityCompensationLogic($owner, null, $date);
+        }
         return Cache::get($date . $type . $owner);
     }