|
@@ -15,19 +15,20 @@ import (
|
|
|
)
|
|
|
|
|
|
var (
|
|
|
- Sysconfig map[string]interface{} //配置文件
|
|
|
- mgo *mongodb.MongodbSim //mongodb操作对象
|
|
|
- extractmgo *mongodb.MongodbSim //mongodb操作对象
|
|
|
- project2db *mongodb.MongodbSim //mongodb操作对象
|
|
|
- mgostandard *mongodb.MongodbSim //mongodb操作对象
|
|
|
- qyxydb *mongodb.MongodbSim //mongodb操作对象
|
|
|
- udpclient mu.UdpClient //udp对象
|
|
|
- updport string
|
|
|
- savesizei = 500
|
|
|
- biddingIndexFields = []string{"_id", "buyerclass", "s_winner", "title", "detail", "detail_bak", "area", "areaval", "site", "type", "amount", "bidopendate", "bidopentime", "buyer", "channel", "city", "comeintime", "contenthtml", "descript", "description", "extracttype", "href", "infoformat", "keywords", "projectcode", "projectname", "publishtime", "s_sha", "spidercode", "subtype", "summary", "toptype", "urltop", "winner", "agency", "budget", "bidamount", "s_subscopeclass", "projectscope", "bidstatus"}
|
|
|
- projectinfoFields []string
|
|
|
- multiIndex []string
|
|
|
- BulkSize = 400
|
|
|
+ Sysconfig map[string]interface{} //配置文件
|
|
|
+ mgo *mongodb.MongodbSim //mongodb操作对象
|
|
|
+ extractmgo *mongodb.MongodbSim //mongodb操作对象
|
|
|
+ project2db *mongodb.MongodbSim //mongodb操作对象
|
|
|
+ mgostandard *mongodb.MongodbSim //mongodb操作对象
|
|
|
+ qyxydb *mongodb.MongodbSim //mongodb操作对象
|
|
|
+ udpclient mu.UdpClient //udp对象
|
|
|
+ updport string
|
|
|
+ savesizei = 500
|
|
|
+ biddingIndexFields = []string{"_id", "buyerclass", "s_winner", "title", "detail", "detail_bak", "area", "areaval", "site", "type", "amount", "bidopendate", "bidopentime", "buyer", "channel", "city", "comeintime", "contenthtml", "descript", "description", "extracttype", "href", "infoformat", "keywords", "projectcode", "projectname", "publishtime", "s_sha", "spidercode", "subtype", "summary", "toptype", "urltop", "winner", "agency", "budget", "bidamount", "s_subscopeclass", "projectscope", "bidstatus"}
|
|
|
+ projectinfoFields []string
|
|
|
+ multiIndex []string
|
|
|
+ purchasinglistFields []string
|
|
|
+ BulkSize = 400
|
|
|
|
|
|
winner, bidding, biddingback, project, project2, buyer, standard, qyxy_ent map[string]interface{}
|
|
|
)
|
|
@@ -102,6 +103,12 @@ func init() {
|
|
|
projectinfoFields = strings.Split(pf, ",")
|
|
|
}
|
|
|
}
|
|
|
+ if bidding["purchasinglist"] != nil {
|
|
|
+ pcl := util.ObjToString(bidding["purchasinglist"])
|
|
|
+ if pcl != "" {
|
|
|
+ purchasinglistFields = strings.Split(pcl, ",")
|
|
|
+ }
|
|
|
+ }
|
|
|
if bidding["multiIndex"] != nil {
|
|
|
mi := util.ObjToString(bidding["multiIndex"])
|
|
|
if mi != "" {
|
|
@@ -109,6 +116,7 @@ func init() {
|
|
|
}
|
|
|
}
|
|
|
log.Println(projectinfoFields)
|
|
|
+ log.Println(purchasinglistFields)
|
|
|
//初始化oss
|
|
|
u.InitOss()
|
|
|
}
|