string[] sales_type_list = sales_type.Split(','); int[] hikingValue = new int[20]; for (int i = 0; i < sales_type_list.Length; i++) { hikingValue[i] = int.Parse(sales_type_list[i]); } ConditionExpression condition = new ConditionExpression("new_selling_format", ConditionOperator.ContainValues, hikingValue); FilterExpression filter = new FilterExpression(); filter.AddCondition(condition); //查询 QueryExpression q2 = new QueryExpression(); q2.EntityName = "new_file_config_detail"; q2.ColumnSet = new ColumnSet(true); q2.Criteria.AddCondition("new_file_configid", ConditionOperator.Equal, e2.Entities[0].Id); q2.Criteria.AddCondition("new_account_type", ConditionOperator.Equal, user_type); q2.Criteria.AddFilter(filter); EntityCollection e = service.RetrieveMultiple(q2);//获取实体信息