调拨订单导出和插入
This commit is contained in:
parent
6e291277d0
commit
be9781f170
@ -103,21 +103,5 @@ class InventoryTransferXlsx
|
|||||||
}
|
}
|
||||||
$writer->save($file_path);
|
$writer->save($file_path);
|
||||||
return getenv('APP_URL') . $url;
|
return getenv('APP_URL') . $url;
|
||||||
|
|
||||||
// $writer = new Xlsx($spreadsheet);
|
|
||||||
// $dir = public_path() . '/export/' . date('Y-m');
|
|
||||||
// if (!file_exists($dir)) {
|
|
||||||
// // 尝试创建目录
|
|
||||||
// if (!mkdir($dir)) {
|
|
||||||
// throw new BusinessException('创建目录失败:/export/' . date('Y-m'));
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// $url = $dir . '/' . "调拨订单 " . date('YmdHi') . '.xlsx';
|
|
||||||
// $file_path = public_path() . $url;
|
|
||||||
// if (!is_dir(dirname($file_path))) {
|
|
||||||
// mkdir(dirname($file_path), 0777, true);
|
|
||||||
// }
|
|
||||||
// $writer->save($file_path);
|
|
||||||
// return getenv('APP_URL') . $url;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user