xuzhiheng 5 жил өмнө
parent
commit
22e7ce95bd

+ 0 - 2
src/history/historytask.go

@@ -19,9 +19,7 @@ func (this *HistoryData) HistoryTask(history_id string) {
 	log.Println("开始历史任务...")
 	go UpdateHistoryState(1, history_id, 0)
 	//加载一个客户
-	log.Println("history_id", history_id)
 	customer, _ := Mgo.Find("historylog", map[string]interface{}{"_id": qu.StringTOBsonId(history_id)}, nil, nil, false, -1, -1)
-	log.Println("data", customer)
 	if len(*customer) == 1 {
 		c := (*customer)[0]
 		customerId := qu.BsonIdToSId(c["_id"])

+ 1 - 5
src/history/task.go

@@ -84,8 +84,7 @@ func (c *Customer) GetDepartments(stype string, departments []map[string]interfa
 			}
 			DM.GetSearchRules(c.ID, stype, c.IdRange, dsArr) //获取某个部门的所有规则
 			c.Departments = append(c.Departments, DM)
-			qu.Debug("Departments---", DM.ID, DM.Name, DM.CustomerID, len(DM.Rules))
-			log.Println(DM.Rules)
+			// qu.Debug("Departments---", DM.ID, DM.Name, DM.CustomerID, len(DM.Rules))
 		}
 	}
 }
@@ -453,16 +452,13 @@ func (d *Department) GetSearchRules(cid, stype string, idRange bson.M, searchRul
 			o_rule, ok := sr["o_rules"].([]interface{})
 			if !ok {
 				o_rule = []interface{}{}
-				log.Println("777")
 			}
 			o_rules := qu.ObjArrToMapArr(o_rule)
 			if len(o_rules) > 0 {
-				log.Println("666")
 				SR.GetKeyAddWord(o_rules)
 			}
 			//获取全局清理词
 			SR.GetClearWord(clearKey, clearKeyMatch)
-			log.Println("srsr", SR)
 			d.Rules = append(d.Rules, SR)
 		}
 	}