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