Эх сурвалжийг харах

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

fuwencai 5 сар өмнө
parent
commit
b0debaf41c

+ 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