|
@@ -23,6 +23,15 @@ func projectTask(data []byte, project, mapInfo map[string]interface{}) {
|
|
|
"$lte": util.StringTOBsonId(mapInfo["lteid"].(string)),
|
|
|
},
|
|
|
}
|
|
|
+ } else {
|
|
|
+ idMap := q["_id"].(map[string]interface{})
|
|
|
+ tmpQ := map[string]interface{}{}
|
|
|
+ for c, id := range idMap {
|
|
|
+ if idStr, ok := id.(string); ok && id != "" {
|
|
|
+ tmpQ[c] = qutil.StringTOBsonId(idStr)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ q["_id"] = tmpQ
|
|
|
}
|
|
|
var session *mgov.Session
|
|
|
if project["addr"] != nil {
|