|
|
@@ -13,7 +13,6 @@ import ( |
|
|
|
"applet/app/utils" |
|
|
|
"github.com/360EntSecGroup-Skylar/excelize" |
|
|
|
"github.com/gin-gonic/gin" |
|
|
|
"path" |
|
|
|
"time" |
|
|
|
) |
|
|
|
|
|
|
@@ -700,12 +699,13 @@ func SelfSupportForSchoolImportTeacher(c *gin.Context) { |
|
|
|
return |
|
|
|
} |
|
|
|
files, _ := c.FormFile("file") |
|
|
|
dst := path.Join("./static/upload", files.Filename) |
|
|
|
dst := "./static/upload/" + files.Filename |
|
|
|
err = c.SaveUploadedFile(files, dst) |
|
|
|
if err != nil { |
|
|
|
e.OutErr(c, e.ERR, err.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
xlsx, err := excelize.OpenFile(dst) |
|
|
|
rows := xlsx.GetRows("Sheet" + "1") |
|
|
|
for key, row := range rows { |
|
|
|