cqp 3 сар өмнө
parent
commit
409ff97599

+ 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 {