Jelajahi Sumber

施工单完成一半

cqpCow 1 tahun lalu
induk
melakukan
0db99c718b
1 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 4 4
      app/Service/ProductService.php

+ 4 - 4
app/Service/ProductService.php

@@ -184,7 +184,7 @@ class ProductService extends Service
                 foreach ($data['depart'] as $value){
                     $insert[] = [
                         'product_id' => $model->id,
-                        'file' => $value,
+                        'depart_id' => $value,
                         'type' => ProductRange::type_one,
                         'crt_time' => $time,
                     ];
@@ -197,7 +197,7 @@ class ProductService extends Service
                 foreach ($data['employee'] as $value){
                     $insert[] = [
                         'product_id' => $model->id,
-                        'file' => $value,
+                        'employee_id' => $value,
                         'type' => ProductRange::type_two,
                         'crt_time' => $time,
                     ];
@@ -272,7 +272,7 @@ class ProductService extends Service
                 foreach ($data['depart'] as $value){
                     $insert[] = [
                         'product_id' => $model->id,
-                        'file' => $value,
+                        'depart_id' => $value,
                         'type' => ProductRange::type_one,
                         'crt_time' => $time,
                     ];
@@ -285,7 +285,7 @@ class ProductService extends Service
                 foreach ($data['employee'] as $value){
                     $insert[] = [
                         'product_id' => $model->id,
-                        'file' => $value,
+                        'employee_id' => $value,
                         'type' => ProductRange::type_two,
                         'crt_time' => $time,
                     ];