Bladeren bron

临时工申请系统 防止重复生成分配数据 添加日志

ANG YU 4 jaren geleden
bovenliggende
commit
e53cf2ed6b
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 2 0
      app/Jobs/LaborApplyRecordJob.php

+ 2 - 0
app/Jobs/LaborApplyRecordJob.php

@@ -9,6 +9,7 @@ use Illuminate\Contracts\Queue\ShouldQueue;
 use Illuminate\Foundation\Bus\Dispatchable;
 use Illuminate\Foundation\Bus\Dispatchable;
 use Illuminate\Queue\InteractsWithQueue;
 use Illuminate\Queue\InteractsWithQueue;
 use Illuminate\Queue\SerializesModels;
 use Illuminate\Queue\SerializesModels;
+use Illuminate\Support\Facades\Log;
 
 
 class LaborApplyRecordJob implements ShouldQueue
 class LaborApplyRecordJob implements ShouldQueue
 {
 {
@@ -37,6 +38,7 @@ class LaborApplyRecordJob implements ShouldQueue
      */
      */
     public function handle()
     public function handle()
     {
     {
+        Log::debug("LaborApplyRecordJob isAppend = {$this->isAppend}");
         $response = $this->service->allocationLaborToLaborCompany($this->isAppend);
         $response = $this->service->allocationLaborToLaborCompany($this->isAppend);
         if (!$response['success']) throw new WarningException($response['error_message']);
         if (!$response['success']) throw new WarningException($response['error_message']);
     }
     }