|
@@ -241,7 +241,7 @@ func HandleYongyiExcelWeekly2(f *excelize.File, sheetName string) (indexList []*
|
|
|
}
|
|
|
_, e := strconv.ParseFloat(text, 64)
|
|
|
if e != nil {
|
|
|
- utils.FileLog.Info(fmt.Sprintf("sheet:%s 第%d行, 第%d列 strconv.ParseFloat Err:%s", sheetName, i, k, e))
|
|
|
+ //utils.FileLog.Info(fmt.Sprintf("sheet:%s 第%d行, 第%d列 strconv.ParseFloat Err:%s", sheetName, i, k, e))
|
|
|
continue
|
|
|
}
|
|
|
}
|
|
@@ -525,7 +525,7 @@ func HandleYongyiExcelWeekly4(f *excelize.File, sheetName string) (indexList []*
|
|
|
}
|
|
|
_, e := strconv.ParseFloat(text, 64)
|
|
|
if e != nil {
|
|
|
- utils.FileLog.Info(fmt.Sprintf("sheet:%s 第%d行, 第%d列 strconv.ParseFloat Err:%s", sheetName, i, k, e))
|
|
|
+ //utils.FileLog.Info(fmt.Sprintf("sheet:%s 第%d行, 第%d列 strconv.ParseFloat Err:%s", sheetName, i, k, e))
|
|
|
continue
|
|
|
}
|
|
|
}
|
|
@@ -659,7 +659,7 @@ func HandleYongyiExcelWeekly5(f *excelize.File, sheetName string) (indexList []*
|
|
|
}
|
|
|
_, e := strconv.ParseFloat(text, 64)
|
|
|
if e != nil {
|
|
|
- utils.FileLog.Info(fmt.Sprintf("sheet:%s 第%d行, 第%d列 strconv.ParseFloat Err:%s", sheetName, i, k, e))
|
|
|
+ //utils.FileLog.Info(fmt.Sprintf("sheet:%s 第%d行, 第%d列 strconv.ParseFloat Err:%s", sheetName, i, k, e))
|
|
|
continue
|
|
|
}
|
|
|
}
|
|
@@ -766,10 +766,13 @@ func HandleYongyiExcelWeekly6(f *excelize.File, sheetName string) (indexList []*
|
|
|
if k == 0 {
|
|
|
text = strings.TrimSpace(text)
|
|
|
var dateT time.Time
|
|
|
- dateT, e = time.ParseInLocation("01/02/2006", text, time.Local)
|
|
|
+ dateT, e = time.ParseInLocation("01-02-06", text, time.Local)
|
|
|
if e != nil {
|
|
|
- utils.FileLog.Info(fmt.Sprintf("sheet:%s 第%d行, 第%d列 读取行,时间列失败 Err:%s", sheetName, i, k, e))
|
|
|
- continue
|
|
|
+ dateT, e = time.ParseInLocation("2006/1/2", text, time.Local)
|
|
|
+ if e != nil {
|
|
|
+ utils.FileLog.Info(fmt.Sprintf("sheet:%s 第%d行, 第%d列 读取行,时间列失败 Err:%s", sheetName, i, k, e))
|
|
|
+ continue
|
|
|
+ }
|
|
|
}
|
|
|
date = dateT.Format(utils.FormatDate)
|
|
|
fmt.Println(date)
|
|
@@ -921,7 +924,7 @@ func HandleYongyiExcelWeekly7(f *excelize.File, sheetName string) (indexList []*
|
|
|
}
|
|
|
_, e := strconv.ParseFloat(text, 64)
|
|
|
if e != nil {
|
|
|
- utils.FileLog.Info(fmt.Sprintf("sheet:%s 第%d行, 第%d列 strconv.ParseFloat Err:%s", sheetName, i, k, e))
|
|
|
+ //utils.FileLog.Info(fmt.Sprintf("sheet:%s 第%d行, 第%d列 strconv.ParseFloat Err:%s", sheetName, i, k, e))
|
|
|
continue
|
|
|
}
|
|
|
}
|
|
@@ -1061,7 +1064,7 @@ func HandleYongyiExcelWeekly8(f *excelize.File, sheetName string) (indexList []*
|
|
|
}
|
|
|
_, e := strconv.ParseFloat(text, 64)
|
|
|
if e != nil {
|
|
|
- utils.FileLog.Info(fmt.Sprintf("sheet:%s 第%d行, 第%d列 strconv.ParseFloat Err:%s", sheetName, i, k, e))
|
|
|
+ //utils.FileLog.Info(fmt.Sprintf("sheet:%s 第%d行, 第%d列 strconv.ParseFloat Err:%s", sheetName, i, k, e))
|
|
|
continue
|
|
|
}
|
|
|
}
|
|
@@ -1190,7 +1193,7 @@ func HandleYongyiExcelWeekly9(f *excelize.File, sheetName string) (indexList []*
|
|
|
}
|
|
|
_, e := strconv.ParseFloat(text, 64)
|
|
|
if e != nil {
|
|
|
- utils.FileLog.Info(fmt.Sprintf("sheet:%s 第%d行, 第%d列 strconv.ParseFloat Err:%s", sheetName, i, k, e))
|
|
|
+ //utils.FileLog.Info(fmt.Sprintf("sheet:%s 第%d行, 第%d列 strconv.ParseFloat Err:%s", sheetName, i, k, e))
|
|
|
continue
|
|
|
}
|
|
|
}
|
|
@@ -1317,7 +1320,7 @@ func HandleYongyiExcelWeekly10(f *excelize.File, sheetName string) (indexList []
|
|
|
}
|
|
|
_, e := strconv.ParseFloat(text, 64)
|
|
|
if e != nil {
|
|
|
- utils.FileLog.Info(fmt.Sprintf("sheet:%s 第%d行, 第%d列 strconv.ParseFloat Err:%s", sheetName, i, k, e))
|
|
|
+ //utils.FileLog.Info(fmt.Sprintf("sheet:%s 第%d行, 第%d列 strconv.ParseFloat Err:%s", sheetName, i, k, e))
|
|
|
continue
|
|
|
}
|
|
|
}
|