|
@@ -2,7 +2,6 @@ package jiayue
|
|
|
|
|
|
import (
|
|
|
"database/sql"
|
|
|
- "encoding/json"
|
|
|
"eta/eta_bridge/global"
|
|
|
"fmt"
|
|
|
)
|
|
@@ -151,7 +150,7 @@ func getDictIndex(sqlStatement string, pars []interface{}) (dictIndexs []DictInd
|
|
|
global.LOG.Info("获取列表相关信息")
|
|
|
for i := 0; i < len(strings); i++ {
|
|
|
fmt.Print(" ", strings[i])
|
|
|
- global.LOG.Info("显示字段:", strings[i])
|
|
|
+ //global.LOG.Info("显示字段:", strings[i])
|
|
|
}
|
|
|
fmt.Print("\n")
|
|
|
global.LOG.Info("\n")
|
|
@@ -206,7 +205,7 @@ func getDictIndex(sqlStatement string, pars []interface{}) (dictIndexs []DictInd
|
|
|
}
|
|
|
defer stmt.Close()
|
|
|
|
|
|
- data, err := json.Marshal(dictIndexs)
|
|
|
+ /*data, err := json.Marshal(dictIndexs)
|
|
|
if err != nil {
|
|
|
fmt.Printf("序列化错误 err = %v\n", err)
|
|
|
global.LOG.Info("序列化错误 err = %v\n", err)
|
|
@@ -214,7 +213,7 @@ func getDictIndex(sqlStatement string, pars []interface{}) (dictIndexs []DictInd
|
|
|
}
|
|
|
//输出序列化后的结果 json字符串
|
|
|
fmt.Printf("序列化后 = %v\n", string(data))
|
|
|
- global.LOG.Info("序列化后 = %v\n", string(data))
|
|
|
+ global.LOG.Info("序列化后 = %v\n", string(data))*/
|
|
|
return
|
|
|
}
|
|
|
|