cqpCow преди 1 година
родител
ревизия
0db99c718b
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  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,
                     ];