瀏覽代碼

feat:判断通话记录状态调整

fuwencai 5 月之前
父節點
當前提交
b0debaf41c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      newuserGet/internal/logic/task.go

+ 1 - 1
newuserGet/internal/logic/task.go

@@ -178,7 +178,7 @@ func filterCallState(ctx context.Context, rule entity.NewUserSendRule, userList
 			default:
 				// 其他的 判断是否存在指定状态的记录
 				findState := strings.Split(callstateList[j], "#")
-				exist, err := dao.VoiceRecord.Ctx(ctx).Where("CalledNo=?", user.Phone).WhereNotIn(dao.VoiceRecord.Columns().CallState, findState).Exist()
+				exist, err := dao.VoiceRecord.Ctx(ctx).Where("CalledNo=?", user.Phone).WhereIn(dao.VoiceRecord.Columns().CallState, findState).Exist()
 				if err != nil {
 					g.Log().Error(ctx, "filterCallState otherstate err:", err, findState, user)
 					continue