//根據任務id過濾數據 Func<RfidCodeResultDto, bool> expression = c => c.lineTaskId == _lineTaskId; rfidCodeInfoList = rfidCodeInfoList.Where(expression).ToList();