|
@@ -553,10 +553,16 @@ func (f *Front) Importfile() {
|
|
|
o["urgency"] = 0
|
|
|
}
|
|
|
o["platform"] = cells[9].Value
|
|
|
+ weigh, _ := cells[10].Int()
|
|
|
+ estimate, _ := cells[11].Int()
|
|
|
+ qu.Debug(weigh, estimate)
|
|
|
+ o["estimate"] = estimate
|
|
|
+ o["weight"] = weigh
|
|
|
o["spidercompete"] = true
|
|
|
- // table := cells[6].Value
|
|
|
- // o["table"] = table
|
|
|
- // o["transfercode"] = qu.IntAll(Transfercode[table])
|
|
|
+ //table := cells[6].Value
|
|
|
+ //o["table"] = table
|
|
|
+ //o["transfercode"] = qu.IntAll(Transfercode[table])
|
|
|
+
|
|
|
query := bson.M{"code": cells[1].Value}
|
|
|
rs := *mgdb.FindOne("import", query)
|
|
|
if len(rs) > 0 {
|
|
@@ -674,6 +680,9 @@ func pf(o map[string]interface{}) (bool, string) {
|
|
|
param["spiderhistorymaxpage"] = 1
|
|
|
param["platform"] = o["platform"]
|
|
|
param["spidercompete"] = o["spidercompete"]
|
|
|
+ param["estimate"] = o["estimate"]
|
|
|
+ param["weight"] = o["weight"]
|
|
|
+
|
|
|
//qu.Debug("param---", param)
|
|
|
issave := spider.SaveSpider(o["code"].(string), param)
|
|
|
return issave, one["s_name"].(string)
|