直接代码
query.Query = "<Where>" + "<Or>" + "<Membership Type='CurrentUserGroups'>" + "<FieldRef Name='AssignedTo' />" + "</Membership>" + "<Eq>" + "<FieldRef Name='AssignedTo' />" + "<Value Type='Integer'>" + "<UserID />" + "</Value>" + "</Eq>" + "</Or>" + "</Where>";