|
@@ -313,6 +313,7 @@ func HandleYongyiExcelWeekly13(f *excelize.File, sheetName string) (indexList []
|
|
|
}
|
|
|
dateName := fmt.Sprintf("%s_%s", date, name)
|
|
|
dateNameWeight := fmt.Sprintf("%s_%s_%s", date, name, weight)
|
|
|
+ fmt.Println(dateNameWeight)
|
|
|
unitMap[dateNameWeight] = GetWeekly13IndexUnit(name)
|
|
|
if v, ok1 := dateNameMap[dateName]; ok1 {
|
|
|
vf, _ := strconv.ParseFloat(v, 64)
|
|
@@ -344,11 +345,11 @@ func HandleYongyiExcelWeekly13(f *excelize.File, sheetName string) (indexList []
|
|
|
fmt.Printf("当前第%d列 \n", k)
|
|
|
if k == 0 {
|
|
|
continue
|
|
|
- } else if k == 1 {
|
|
|
- // 体重
|
|
|
- weight = strings.TrimSpace(text)
|
|
|
- continue
|
|
|
} else {
|
|
|
+ if k == 1 {
|
|
|
+ // 体重
|
|
|
+ weight = strings.TrimSpace(text)
|
|
|
+ }
|
|
|
if text == "" {
|
|
|
continue
|
|
|
}
|
|
@@ -403,6 +404,8 @@ func HandleYongyiExcelWeekly13(f *excelize.File, sheetName string) (indexList []
|
|
|
}
|
|
|
}
|
|
|
for _, v := range indexMap {
|
|
|
+ fmt.Printf("IndexName:%s\n", v.IndexName)
|
|
|
+ fmt.Printf("IndexCode:%s\n", v.IndexCode)
|
|
|
indexList = append(indexList, v)
|
|
|
}
|
|
|
return
|