Browse Source

工单处理->定时任务

loustwo 4 years ago
parent
commit
ec9c1a6650

+ 5 - 4
app/Services/WorkOrderService.php

@@ -310,18 +310,19 @@ class WorkOrderService
     }
 
     private function updateLogisticHandlerTask(){
-        // 将当日承运商处理过 且 状态为无的 标记为滞留状态 `滞`
+        // 将当日承运商处理过 且 状态为``的 标记为滞留状态 `滞`
         WorkOrder::query()->where('status',3)
-            ->where('logistic_tag',0)
+            ->where('logistic_tag',1)
             ->update(['logistic_tag' => 2]);
     }
 
     private function updateBaoShiHandlerTask(){
-        // 将当日宝时处理过 且 状态为无的 标记为滞留状态 `滞`
+        // 将当日宝时处理过 且 状态为``的 标记为滞留状态 `滞`
         WorkOrder::query()->whereIn('status',[1,4])
-            ->where('bao_shi_tag',0)
+            ->where('bao_shi_tag',1)
             ->update(['bao_shi_tag' => 2]);
     }
 
 
+
 }

+ 1 - 5
app/WorkOrderProcessLog.php

@@ -8,11 +8,7 @@ use App\Traits\ModelLogChanging;
 use Illuminate\Database\Eloquent\Relations\BelongsTo;
 
 
-/**
- * 无用模型
- * Class WorkOrderProcessLog
- * @package App
- */
+
 class WorkOrderProcessLog extends Model
 {
     use ModelLogChanging;

+ 32 - 0
database/migrations/2022_01_07_150835_work_order_process_logs_eidt_table.php

@@ -0,0 +1,32 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class WorkOrderProcessLogsEidtTable extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('work_order_process_logs', function (Blueprint $table) {
+            //
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('work_order_process_logs', function (Blueprint $table) {
+            //
+        });
+    }
+}