cqp hai 3 meses
pai
achega
409ff97599
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Service/ImportService.php

+ 1 - 1
app/Service/ImportService.php

@@ -324,7 +324,7 @@ class ImportService extends Service
                 // 收集明细 (后续统一插入)
                 if (isset($detail_data_map[$key])) {
                     foreach ($detail_data_map[$key] as $d) {
-                        $all_detail_insert[] = array_merge($d, ['item_id' => $itemId, 'crt_time' => $time, 'top_depart_id' => $main_tmp['top_depart_id']]);
+                        $all_detail_insert[] = array_merge($d, ['item_id' => $itemId, 'crt_time' => $time, 'top_depart_id' => $user['top_depart_id']]);
                     }
                 }
             } else {