|
@@ -118,7 +118,7 @@ ORDER BY
|
|
|
|
|
|
func kcJob(data map[string]interface{}) int {
|
|
|
nowTime := time.Now().Format(date.Date_Full_Layout)
|
|
|
- uId, entId, clueId, saveMap, status := "", gconv.Int(data["ent_id"]), int64(0), map[string]interface{}{}, 1
|
|
|
+ uId, entId, clueId, saveMap, status := "", gconv.String(data["ent_id"]), int64(0), map[string]interface{}{}, 1
|
|
|
userId, cluename, phone := "", "", ""
|
|
|
phone = gconv.String(data["user_phone"])
|
|
|
uId, userId = GetUidToUserId(gconv.String(data["user_id"]), "")
|
|
@@ -127,6 +127,10 @@ func kcJob(data map[string]interface{}) int {
|
|
|
log.Println("移交客成缺少基本信息,缺少用户信息", uId)
|
|
|
return 0
|
|
|
}
|
|
|
+ buy_subject := common.IntAll(data["buy_subject"])
|
|
|
+ if buy_subject == 1 || buy_subject == 0 {
|
|
|
+ entId = gconv.String(data["userid"])
|
|
|
+ }
|
|
|
clueData := TiDb.FindOne("dwd_f_crm_clue_info", map[string]interface{}{"uid": uId}, "", "")
|
|
|
orderCode := gconv.String(data["order_code"])
|
|
|
saleDep, orderPositionId, salesperson := FindSaleRecord(orderCode)
|