| | |
| | | { |
| | | return content; |
| | | } |
| | | List<int> ints = _outboundRepository.OutSGOrderDetailRepository.QueryData(x=>x.Id>outDetailId).Select(x=>x.Id).ToList(); |
| | | int[] reseponse= new int[ints.Count]; |
| | | for (int i = 0; i < ints.Count; i++) |
| | | //è·åææçåºåºè¯¦æ
夿æ¯å¦æ»¡è¶³åºåºéå°äº5ä¸ä¸å°äº17å· |
| | | List<Dt_OutStockLockInfo> outStockLockInfos = _outboundRepository.OutStockLockInfoRepository.QueryData(x=>x.OrderType==OutOrderTypeEnum.OutSGPick.ObjToInt() && x.Status<=OutLockStockStatusEnum.å
³é.ObjToInt()); |
| | | decimal sumAssignQty = outStockLockInfos.Sum(x => x.AssignQuantity); |
| | | int outCount= outStockLockInfos.Select(x=>x.PalletCode).Distinct().Count(); |
| | | if (sumAssignQty < AppSettings.Get("OutSGLength").ObjToInt() && outCount < AppSettings.Get("OutSGCount").ObjToInt()) |
| | | { |
| | | reseponse[i] = ints[i]; |
| | | List<int> ints = _outboundRepository.OutSGOrderDetailRepository.QueryData(x => x.Id > outDetailId).Select(x => x.Id).ToList(); |
| | | int[] reseponse = new int[ints.Count]; |
| | | for (int i = 0; i < ints.Count; i++) |
| | | { |
| | | reseponse[i] = ints[i]; |
| | | } |
| | | content.Message = CreateSGOutboundTasks(reseponse).Message; |
| | | } |
| | | content.Message = CreateSGOutboundTasks(reseponse).Message; |
| | | else |
| | | { |
| | | return content.Error($"å½ååºåºéï¼{sumAssignQty},å½ååºåºå·æ°ï¼{outCount},䏿»¡è¶³å°äº5ä¸ä¸å°äº17å·åºåºæ¡ä»¶"); |
| | | } |
| | | } |
| | | |
| | | } |