Commit 4c20e9db by lzzzzl

推送测试

parent f13c1695
Showing with 18 additions and 17 deletions
...@@ -72,30 +72,30 @@ func main() { ...@@ -72,30 +72,30 @@ func main() {
_ = logger.InitLogger("file", logConfig) _ = logger.InitLogger("file", logConfig)
logger.Init() logger.Init()
err_seo := initDb("InitSeoDB", util.Configs.Seo_databases.Dns) errSeo := initDb("InitSeoDB", util.Configs.Seo_databases.Dns)
err_spu := initDb("InitSpuDB", util.Configs.Spu_databases.Dns) errSpu := initDb("InitSpuDB", util.Configs.Spu_databases.Dns)
err_goods := initDb("InitGoodsDB", util.Configs.Goods_databases.Dns) errGoods := initDb("InitGoodsDB", util.Configs.Goods_databases.Dns)
err_sku := initDb("InitSkuDB", util.Configs.Sku_databases.Dns) //errSku := initDb("InitSkuDB", util.Configs.Sku_databases.Dns)
err_lx := initDb("InitLxDB", util.Configs.Liexin_databases.Dns) errLx := initDb("InitLxDB", util.Configs.Liexin_databases.Dns)
if err_goods != nil { if errGoods != nil {
fmt.Println(err_goods) fmt.Println(errGoods)
} }
if err_spu != nil { if errSpu != nil {
fmt.Println(err_goods) fmt.Println(errGoods)
} }
if err_seo != nil { if errSeo != nil {
fmt.Println(err_seo) fmt.Println(errSeo)
} }
if err_sku != nil { //if errSku != nil {
fmt.Println(err_sku) // fmt.Println(errSku)
} //}
if err_lx != nil { if errLx != nil {
fmt.Println(err_lx) fmt.Println(errLx)
} }
t := &RecvPro{} t := &RecvPro{}
......
...@@ -80,6 +80,7 @@ func RunMipTask(remainCount int, configDir string) { ...@@ -80,6 +80,7 @@ func RunMipTask(remainCount int, configDir string) {
var cdCount, _ = strconv.Atoi(collectDbCount) var cdCount, _ = strconv.Atoi(collectDbCount)
var sql = colsql.MipSQL(collectCode, tableIndex, cdCount, cdCount+remainCount) var sql = colsql.MipSQL(collectCode, tableIndex, cdCount, cdCount+remainCount)
colDb = db.GetDB(collectDbConn) colDb = db.GetDB(collectDbConn)
fmt.Println(collectDbConn + "---" + sql)
res, err := colDb.Queryx(sql) res, err := colDb.Queryx(sql)
fmt.Println(sql) fmt.Println(sql)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment