소스 검색

施工单完成一半

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,
                     ];