|
@@ -300,8 +300,7 @@ func dealProject() {
|
|
}
|
|
}
|
|
|
|
|
|
log.Info("dealProject", zap.Any("q", q))
|
|
log.Info("dealProject", zap.Any("q", q))
|
|
- query := sess.DB(GF.MongoP.DB).C(GF.MongoP.Coll).Find(q).Select(map[string]interface{}{
|
|
|
|
- "ids": 0, "list": 0}).Iter()
|
|
|
|
|
|
+ query := sess.DB(GF.MongoP.DB).C(GF.MongoP.Coll).Find(q).Select(nil).Iter()
|
|
count := 0
|
|
count := 0
|
|
|
|
|
|
ch := make(chan bool, 15)
|
|
ch := make(chan bool, 15)
|
|
@@ -320,16 +319,15 @@ func dealProject() {
|
|
wg.Done()
|
|
wg.Done()
|
|
}()
|
|
}()
|
|
rea := TagProject(tmp)
|
|
rea := TagProject(tmp)
|
|
- if len(rea) > 0 {
|
|
|
|
- reb := calculateFlag(rea, columns) //拿到十进制数字,标签栏目结果
|
|
|
|
- update := map[string]interface{}{
|
|
|
|
- "nav_column": reb,
|
|
|
|
- }
|
|
|
|
- where := map[string]interface{}{
|
|
|
|
- "_id": tmp["_id"],
|
|
|
|
- }
|
|
|
|
- MgoP.Update(GF.MongoP.Coll, where, map[string]interface{}{"$set": update}, true, false)
|
|
|
|
|
|
+ reb := calculateFlag(rea, columns) //拿到十进制数字,标签栏目结果
|
|
|
|
+ update := map[string]interface{}{
|
|
|
|
+ "nav_column": reb,
|
|
}
|
|
}
|
|
|
|
+ where := map[string]interface{}{
|
|
|
|
+ "_id": tmp["_id"],
|
|
|
|
+ }
|
|
|
|
+ MgoP.Update(GF.MongoP.Coll, where, map[string]interface{}{"$set": update}, true, false)
|
|
|
|
+
|
|
}(tmp)
|
|
}(tmp)
|
|
tmp = map[string]interface{}{}
|
|
tmp = map[string]interface{}{}
|
|
}
|
|
}
|