db:=model.Db.Model(InviteApply{}).Where("user_id in (?)",userIds).Where("created_time >= ? and created_time <= ?",beginTime,endTime)
db:=model.Db.Model(InviteApply{}).Where("user_id in (?) or sub_user_id = ?",userIds,subUserId).Where("created_time >= ? and created_time <= ?",beginTime,endTime)