瀏覽代碼

小高薪

cqp 3 月之前
父節點
當前提交
409ff97599
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 {