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