|
@@ -101,7 +101,7 @@ func AutoFollow(this *biservice.CallReq) *biservice.ClueImportResp {
|
|
|
clueData := JyBiTidb.FindOne("dwd_f_crm_clue_info", map[string]interface{}{"uid": baseInfoId}, "", "")
|
|
|
if clueData != nil {
|
|
|
clueId := common.Int64All((*clueData)["id"])
|
|
|
- callData := CallTidb.FindOne("voice_record", map[string]interface{}{"CalledNo": this.Phone}, "", "")
|
|
|
+ callData := CallTidb.FindOne("voice_record", map[string]interface{}{"CalledNo": this.Phone}, "", "createTime desc")
|
|
|
if callData != nil {
|
|
|
callMap := map[string]interface{}{
|
|
|
"": "1",
|
|
@@ -131,7 +131,7 @@ func AutoFollow(this *biservice.CallReq) *biservice.ClueImportResp {
|
|
|
JyBiTidb.Update("dwd_f_crm_clue_info", map[string]interface{}{"phone": this.Phone}, updateData)
|
|
|
} else {
|
|
|
time.Sleep(10 * time.Second)
|
|
|
- callData := CallTidb.FindOne("voice_record", map[string]interface{}{"phone": this.Phone}, "", "")
|
|
|
+ callData := CallTidb.FindOne("voice_record", map[string]interface{}{"phone": this.Phone}, "", "createTime desc")
|
|
|
if callData != nil {
|
|
|
callMap := map[string]interface{}{
|
|
|
"": "1",
|