소스 검색

通话记录查询

xuzhiheng 1 년 전
부모
커밋
2d8f07011e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      service/hlyj.go

+ 2 - 2
service/hlyj.go

@@ -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",