| | |
| | | |
| | | foreach (var item in result.data) |
| | | { |
| | | var carInfo = _palletStockInfoRepository.QueryFirst(x => x.PVI == item.pvi); |
| | | if (carInfo == null) |
| | | if (!string.IsNullOrEmpty(item.pvi)) |
| | | { |
| | | throw new Exception("鏈煡杞﹁韩"); |
| | | var carInfo = _palletStockInfoRepository.QueryFirst(x => x.PVI == item.pvi && x.pbMaterial == item.pbMaterial); |
| | | if (carInfo == null) |
| | | { |
| | | throw new Exception("鏈煡杞﹁韩"); |
| | | } |
| | | } |
| | | |
| | | content.lockpvi = carInfo.PVI; |
| | | var carinfo = _palletStockInfoRepository.QueryData(x => x.pbMaterial == item.pbMaterial).OrderBy(x => x.CreateDate); |
| | | |
| | | } |
| | | |
| | | LogFactory.GetLog("MES鎷夊姩閿佽溅").Info(true, $"\r\r--------------------------------------"); |