tuoling805 1 år sedan
förälder
incheckning
b474498d32
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      services/init_base_index.go

+ 3 - 3
services/init_base_index.go

@@ -48,7 +48,7 @@ func InitBaseIndexData() {
 	fmt.Println("rows len:", len(rows))
 	for rk, row := range rows {
 		if rk > 0 {
-			var classifyFirst, classifySecond, classifyThree, indexCode, indexName, unit, frequency, source string
+			var classifyFirst, classifySecond, classifyThree, indexCode, indexName, frequency, unit, source string
 			for ck, colCell := range row {
 				switch ck {
 				case 0:
@@ -56,7 +56,7 @@ func InitBaseIndexData() {
 				case 1:
 					classifySecond = colCell
 				case 2:
-					classifySecond = colCell
+					classifyThree = colCell
 				case 3:
 					indexCode = colCell
 				case 4:
@@ -150,7 +150,7 @@ func InitBaseIndexData() {
 				fmt.Println("add index success:" + indexCode)
 			} else {
 				fmt.Println("data is empty")
-				fmt.Println(classifyFirst, classifySecond, classifyThree, indexCode, indexName, unit, frequency, source)
+				fmt.Println(classifyFirst, classifySecond, classifyThree, indexCode, indexName, frequency, unit, source)
 			}
 		}
 	}