|
@@ -18,7 +18,7 @@ import (
|
|
)
|
|
)
|
|
|
|
|
|
func FormatData(data map[string]interface{}, item string) (bool, bool, bool) {
|
|
func FormatData(data map[string]interface{}, item string) (bool, bool, bool) {
|
|
- userId, uId, positionId, source, cluename, phone, sourceCode, keyword, limitation := gconv.String(data["user_id"]), "", "", "", "", "", "", []string{}, gconv.Int64(data["limitation"])
|
|
|
|
|
|
+ userId, uId, positionId, source, cluename, phone, sourceCode, keyword, _ := gconv.String(data["user_id"]), "", "", "", "", "", "", []string{}, ""
|
|
role, industry, department, departments, position, name, top_cluetype, sub_cluetype, follow_project_area, level := "", "", "", "", "", "", "", "", "", ""
|
|
role, industry, department, departments, position, name, top_cluetype, sub_cluetype, follow_project_area, level := "", "", "", "", "", "", "", "", "", ""
|
|
query, topname, subname, belong_to, sourceName, remark, sourceId := map[string]interface{}{}, "", "", "01", "", "", int64(0)
|
|
query, topname, subname, belong_to, sourceName, remark, sourceId := map[string]interface{}{}, "", "", "01", "", "", int64(0)
|
|
nowTime := time.Now().Format("2006-01-02 15:04:05")
|
|
nowTime := time.Now().Format("2006-01-02 15:04:05")
|
|
@@ -343,7 +343,7 @@ func FormatData(data map[string]interface{}, item string) (bool, bool, bool) {
|
|
return true, true, true
|
|
return true, true, true
|
|
}
|
|
}
|
|
log.Println("人员选择", level, cluename, phone, isGroup, isCommerce)
|
|
log.Println("人员选择", level, cluename, phone, isGroup, isCommerce)
|
|
- position_id, seatNumber, saleName, saleData, pIsOk, isFreeze, noticePositionId := autoDraw(level, cluename, phone, isGroup, isCommerce, item, limitation) //查询当前分配次数最少的,如果当前线索有销售,此次找出的不会+1
|
|
|
|
|
|
+ position_id, seatNumber, saleName, saleData, pIsOk, isFreeze, noticePositionId := autoDraw(level, cluename, phone, isGroup, isCommerce) //查询当前分配次数最少的,如果当前线索有销售,此次找出的不会+1
|
|
log.Println("data -------", position_id, seatNumber, saleName, pIsOk, isFreeze, noticePositionId)
|
|
log.Println("data -------", position_id, seatNumber, saleName, pIsOk, isFreeze, noticePositionId)
|
|
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 //查当前线索是否已存在
|