|
@@ -23,8 +23,9 @@ func projectTask(data []byte, project, mapInfo map[string]interface{}) {
|
|
|
"$lte": util.StringTOBsonId(mapInfo["lteid"].(string)),
|
|
|
},
|
|
|
}
|
|
|
- } else {
|
|
|
- idMap := q["_id"].(map[string]interface{})
|
|
|
+ }
|
|
|
+ idMap, _ := q["_id"].(map[string]interface{})
|
|
|
+ if idMap != nil {
|
|
|
tmpQ := map[string]interface{}{}
|
|
|
for c, id := range idMap {
|
|
|
if idStr, ok := id.(string); ok && id != "" {
|