public void WaveComplete(UpDownMessage upDownMessage) { upDownMessage.UpDownCommand = UpDownCommand.WaveComplete; var data = slaveInfoService.GetSortingDetail().Where(o => o.WaitNum > o.PutNum).ToList(); if (OrderAPI.CompleteWaveAPI(sysConfig.DomainName, slaveInfoService.SlaveInfo.WaveNo, data, curUser.UserId)) { Parallel.ForEach(service, o => o.WaveComplete(upDownMessage)); SetText($"完成波次:{slaveInfoService.SlaveInfo.WaveNo}"); } else { SetText($"接口报错:CompleteWaveAPI"); } }