|
@@ -233,11 +233,8 @@ func FormatData(data map[string]interface{}, item string) (bool, bool) {
|
|
log.Println("线索分配失败,线索过滤top_cluetype!!", item, uId, phone, userId)
|
|
log.Println("线索分配失败,线索过滤top_cluetype!!", item, uId, phone, userId)
|
|
return true, true
|
|
return true, true
|
|
}
|
|
}
|
|
- position_id, seatNumber, saleName, saleData, pIsOk, isFreeze, isWait := autoDraw(level, cluename, phone, isGroup, isCommerce) //查询当前分配次数最少的,如果当前线索有销售,此次找出的不会+1
|
|
|
|
|
|
+ position_id, seatNumber, saleName, saleData, pIsOk, isFreeze := autoDraw(level, cluename, phone, isGroup, isCommerce) //查询当前分配次数最少的,如果当前线索有销售,此次找出的不会+1
|
|
log.Println("data -------", position_id, seatNumber, saleName)
|
|
log.Println("data -------", position_id, seatNumber, saleName)
|
|
- if isWait {
|
|
|
|
- return true, false
|
|
|
|
- }
|
|
|
|
if position_id > 0 && seatNumber != "" {
|
|
if position_id > 0 && seatNumber != "" {
|
|
uCount, oks := TiDb.FindOne("dwd_f_crm_clue_info", map[string]interface{}{"uid": uId}, "", ""), true //查当前线索是否已存在
|
|
uCount, oks := TiDb.FindOne("dwd_f_crm_clue_info", map[string]interface{}{"uid": uId}, "", ""), true //查当前线索是否已存在
|
|
if uCount != nil && len(*uCount) > 0 { //已存在,走更新
|
|
if uCount != nil && len(*uCount) > 0 { //已存在,走更新
|