...
|
...
|
@@ -398,6 +398,7 @@ func (controller *SuMoneyController) ImportExchangeList () { |
|
|
operator, _ := controller.GetInt64("operator")
|
|
|
file, h, _ := controller.GetFile("file") //获取上传的文件
|
|
|
ext := path.Ext(h.Filename)
|
|
|
// 文件后缀名校验
|
|
|
AllowExtMap := map[string]bool{
|
|
|
".xlsx":true,
|
|
|
}
|
...
|
...
|
@@ -410,7 +411,7 @@ func (controller *SuMoneyController) ImportExchangeList () { |
|
|
fmt.Println(err)
|
|
|
return
|
|
|
}
|
|
|
// TODO 增加非空校验,导入失败原因返回
|
|
|
// 记录非空校验
|
|
|
var response utils.JsonResponse
|
|
|
dataList := make([]interface{}, 0)
|
|
|
rows, _ := xlsx.GetRows("Sheet1")
|
...
|
...
|
|