|
@@ -35,11 +35,6 @@ func biddingTask(mapInfo map[string]interface{}) {
|
|
|
defer util.Catch()
|
|
|
|
|
|
stype := util.ObjToString(mapInfo["stype"])
|
|
|
- if stype == "bidding" {
|
|
|
- uq := bson.M{"gtid": bson.M{"$gte": util.ObjToString(mapInfo["gtid"])},
|
|
|
- "lteid": bson.M{"$lte": util.ObjToString(mapInfo["lteid"])}}
|
|
|
- MgoB.Update("bidding_processing_ids", uq, bson.M{"$set": bson.M{"dataprocess": 8, "updatetime": time.Now().Unix()}}, false, true)
|
|
|
- }
|
|
|
q, _ := mapInfo["query"].(map[string]interface{})
|
|
|
if q == nil {
|
|
|
q = map[string]interface{}{
|
|
@@ -137,6 +132,13 @@ func biddingTask(mapInfo map[string]interface{}) {
|
|
|
wg.Wait()
|
|
|
log.Info("biddingTask over", zap.Int("count", c1), zap.Int("index", index))
|
|
|
|
|
|
+ //更新状态
|
|
|
+ if stype == "bidding" {
|
|
|
+ uq := bson.M{"gtid": bson.M{"$gte": util.ObjToString(mapInfo["gtid"])},
|
|
|
+ "lteid": bson.M{"$lte": util.ObjToString(mapInfo["lteid"])}}
|
|
|
+ MgoB.Update("bidding_processing_ids", uq, bson.M{"$set": bson.M{"dataprocess": 8, "updatetime": time.Now().Unix(), "index_num": index}}, false, true)
|
|
|
+ }
|
|
|
+
|
|
|
////发送udp,附件补采 才需要
|
|
|
//data := map[string]interface{}{
|
|
|
// "stype": "update",
|