方式一:
serviceBillList = serviceBillList.Where(b => new int[]{ 1,2,3}.Contains(b.Status));
方式二:
if (!new int[] { 1, 2, 3 }.Contains(item.Status)) { model.Status = "fail"; model.Message = "提交状态参数错误。"; return model; }
方式一:
serviceBillList = serviceBillList.Where(b => new int[]{ 1,2,3}.Contains(b.Status));
方式二:
if (!new int[] { 1, 2, 3 }.Contains(item.Status)) { model.Status = "fail"; model.Message = "提交状态参数错误。"; return model; }