//根据任务id过滤数据 Func<RfidCodeResultDto, bool> expression = c => c.lineTaskId == _lineTaskId; rfidCodeInfoList = rfidCodeInfoList.Where(expression).ToList();