|
@@ -42,7 +42,9 @@ func (this *BusinessIntelligence) BusinessDetails() {
|
|
|
id = util.DecodeId(id)
|
|
|
(*data)["isSaleLeads"] = qutil.If(db.Mgo.Count("saleLeads", map[string]interface{}{
|
|
|
"userid": userId,
|
|
|
- "source": "pc_project_businessDetails_improve",
|
|
|
+ "source": map[string]interface{}{
|
|
|
+ "$regex": "pc_project_businessDetails_improve",
|
|
|
+ },
|
|
|
}) > 0, false, true)
|
|
|
|
|
|
data, ok = db.Mgo_Ent.FindById(C_FPContent, id, nil)
|