소스 검색

添加执行时间

loustwo 4 년 전
부모
커밋
26254a6eab
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      app/Http/ApiControllers/InventoryController.php

+ 3 - 0
app/Http/ApiControllers/InventoryController.php

@@ -10,6 +10,7 @@ use App\InventoryAccountMission;
 use App\Services\AndroidInventoryService;
 use App\Services\AndroidInventoryService;
 use App\Services\InventoryAccountService;
 use App\Services\InventoryAccountService;
 use Illuminate\Http\Request;
 use Illuminate\Http\Request;
+use Illuminate\Support\Facades\Log;
 
 
 class InventoryController
 class InventoryController
 {
 {
@@ -176,6 +177,7 @@ class InventoryController
      */
      */
     public function stockInventory(Request $request)
     public function stockInventory(Request $request)
     {
     {
+        Log::error('执行开始',[now()->toDateTimeString()]);
         $task_item_id = $request->input("task_item_id");
         $task_item_id = $request->input("task_item_id");
         $verified_amount = $request->input("verified_amount");
         $verified_amount = $request->input("verified_amount");
         /**
         /**
@@ -196,6 +198,7 @@ class InventoryController
             $stockService->updateInventory($task_id);
             $stockService->updateInventory($task_id);
         }
         }
         $notStocktakingList=$service->getUnInventoryTaskList($task_id);
         $notStocktakingList=$service->getUnInventoryTaskList($task_id);
+        Log::error('执行结束',[now()->toDateTimeString()]);
         $this->response($notStocktakingList);
         $this->response($notStocktakingList);
     }
     }