|
@@ -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
|