|
|
@ -2929,7 +2929,7 @@ end
|
|
|
|
attachment.save
|
|
|
|
attachment.save
|
|
|
|
path = attachment.disk_directory
|
|
|
|
path = attachment.disk_directory
|
|
|
|
name = attachment.disk_filename
|
|
|
|
name = attachment.disk_filename
|
|
|
|
if name.split(".").last == "xls" || name.split(".").last == "xlsx"
|
|
|
|
if name.split(".").last == "xlsx"
|
|
|
|
# lists = readXlsData("files/baolong.xlsx")
|
|
|
|
# lists = readXlsData("files/baolong.xlsx")
|
|
|
|
lists = readXlsData("files/#{path}/#{name}")
|
|
|
|
lists = readXlsData("files/#{path}/#{name}")
|
|
|
|
school_id = nil
|
|
|
|
school_id = nil
|
|
|
|