Commit 25ae125c by Ivan Lan

fix: 恢复测试连接

parent bde58662
...@@ -62,8 +62,8 @@ module TalltyImportExport ...@@ -62,8 +62,8 @@ module TalltyImportExport
export_workbook workbook, records, **options export_workbook workbook, records, **options
end end
# file_path = File.join(Rails.root, 'public', 'export') file_path = File.join(Rails.root, 'public', 'export')
file_path = File.join('/Users/mushu/', 'export') # file_path = File.join('/Users/mushu/', 'export')
FileUtils.mkdir_p(file_path) unless Dir.exist?(file_path) FileUtils.mkdir_p(file_path) unless Dir.exist?(file_path)
file_name = "#{Time.now.strftime('%Y%m%d%H%M%S')}#{@filename}.xlsx" file_name = "#{Time.now.strftime('%Y%m%d%H%M%S')}#{@filename}.xlsx"
file_path_with_name = File.join(file_path, file_name) file_path_with_name = File.join(file_path, file_name)
......
...@@ -36,7 +36,6 @@ module TalltyImportExport ...@@ -36,7 +36,6 @@ module TalltyImportExport
end end
# 合并相同 header # 合并相同 header
p header_obj.header_seq_to_axios.values
header_obj.header_seq_to_axios.values.each do |axios_ary| header_obj.header_seq_to_axios.values.each do |axios_ary|
if axios_ary.count > 1 if axios_ary.count > 1
top_right = [axios_ary.map(&:first).min, axios_ary.map(&:last).min] top_right = [axios_ary.map(&:first).min, axios_ary.map(&:last).min]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment