|
@@ -15,18 +15,18 @@ import (
|
|
|
|
|
|
var (
|
|
|
MongoFrom /*抽取原*/, MongoTo /*保存库*/, MongoEnt/*企业库*/ *mongo.MongodbSim
|
|
|
- sysconfig map[string]interface{}
|
|
|
- extractcoll string
|
|
|
- winnerent, winnererr string
|
|
|
- buyerent, buyererr string
|
|
|
- agencyent, agencyerr string
|
|
|
- winnerbd, buyerbd, agencybd int
|
|
|
- Addrs = make(map[string]interface{}, 0) //省市县
|
|
|
- winchanbool = make(chan bool, 3)
|
|
|
- buyerchanbool = make(chan bool, 3)
|
|
|
- agencychanbool = make(chan bool, 3)
|
|
|
- gochan = make(chan bool, 3)
|
|
|
- udpclient mu.UdpClient
|
|
|
+ sysconfig map[string]interface{}
|
|
|
+ extractcoll string
|
|
|
+ winnerent, winnererr string
|
|
|
+ buyerent, buyererr string
|
|
|
+ agencyent, agencyerr string
|
|
|
+ winnerbd, buyerbd, agencybd int
|
|
|
+ Addrs = make(map[string]interface{}, 0) //省市县
|
|
|
+ winchanbool = make(chan bool, 3)
|
|
|
+ buyerchanbool = make(chan bool, 3)
|
|
|
+ agencychanbool = make(chan bool, 3)
|
|
|
+ gochan = make(chan bool, 3)
|
|
|
+ udpclient mu.UdpClient
|
|
|
//异常表正则匹配处理
|
|
|
WinnerRegOk, WinnerRegErr, AgencyRegOk, AgencyRegErr, BuyerRegOk, BuyerRegErr []regexp.Regexp
|
|
|
)
|
|
@@ -129,12 +129,9 @@ func initReg() {
|
|
|
func main() {
|
|
|
//go historywinner(qu.ObjToString(sysconfig["mgofromdb"]), extractcoll)
|
|
|
//go historybuyer(qu.ObjToString(sysconfig["mgofromdb"]), extractcoll)
|
|
|
- go historyagency(qu.ObjToString(sysconfig["mgofromdb"]), extractcoll)
|
|
|
- //go winStandarHistory(qu.ObjToString(sysconfig["mgotodb"]))
|
|
|
- //go buyerStandarHistory(qu.ObjToString(sysconfig["mgotodb"]))
|
|
|
+ //go historyagency(qu.ObjToString(sysconfig["mgofromdb"]), extractcoll)
|
|
|
|
|
|
-
|
|
|
- //go task_standarData()
|
|
|
+ go task_standarData()
|
|
|
c := make(chan int, 1)
|
|
|
<-c
|
|
|
}
|