Browse Source

Merge branch 'master' of http://8.136.199.33:3000/eta_server/eta_data_init

hsun 1 year ago
parent
commit
57fc7584e7
1 changed files with 4 additions and 1 deletions
  1. 4 1
      services/init_base_index.go

+ 4 - 1
services/init_base_index.go

@@ -69,7 +69,7 @@ func InitBaseIndexData(dataPath string) {
 
 	for rk, row := range rows {
 		if rk > 0 {
-			var classifyFirst, classifySecond, classifyThree, classifyFourth, classifyFifth, classifySixth, indexCode, indexName, frequency, unit, source, mobile string
+			var classifyFirst, classifySecond, classifyThree, classifyFourth, classifyFifth, classifySixth, indexCode, indexName, frequency, unit, source, mobile, terminalCode string
 			for ck, colCell := range row {
 				colCell = strings.TrimSpace(colCell)
 				switch ck {
@@ -97,6 +97,8 @@ func InitBaseIndexData(dataPath string) {
 					source = colCell
 				case 11:
 					mobile = colCell
+				case 12:
+					terminalCode = colCell
 				}
 			}
 
@@ -269,6 +271,7 @@ func InitBaseIndexData(dataPath string) {
 				indexMap["Frequency"] = frequency
 				indexMap["Unit"] = unit
 				indexMap["ClassifyId"] = lastId
+				indexMap["TerminalCode"] = terminalCode
 				admin := mobileMap[mobile]
 				if admin != nil {
 					indexMap["AdminId"] = admin.AdminId