| | |
| | | { |
| | | //æ¶è£
ä¸ç产 å忢æå¨åºåº |
| | | var area = _areaInfoRepository.QueryFirst(x => x.AreaCode == "2"); |
| | | if (area.AreaStatus != 1l) { return Task.CompletedTask; } |
| | | if (area.AreaStatus != 1) { return Task.CompletedTask; } |
| | | |
| | | var stockInfo = _palletStockInfoRepository.Db.Queryable<Dt_PalletStockInfo>() |
| | | //.Where(x => x.LockStatue == 0) |
| | | .Includes(x => x.CarBodyInfo) |
| | | .Where(x => x.CarBodyInfo.CarType == 1 && x.TaskStatus == 0) |
| | | .Where(x => x.CarBodyInfo.CarType == 1 && x.TaskStatus == 0 && x.LockOrder == 0 && x.StayStatus == 0) |
| | | .OrderBy(x => x.CreateDate) // æåº |
| | | .ToList(); // è·å第ä¸ä¸ªå
ç´ |
| | | |
| | |
| | | var location = _locationRepository.QueryFirst(x => x.LocationCode == stock.LocationCode); |
| | | location.LocationStatus = (int)LocationEnum.InStockDisable; |
| | | lockStock.TaskStatus = 1; |
| | | if (stationLists == null || stationLists.Count == 0) throw new Exception("åºåºç«å°æªé
ç½®ææªå¯ç¨"); |
| | | if (!stationLists.Any()) throw new Exception("åºåºç«å°æªé
ç½®ææªå¯ç¨"); |
| | | |
| | | Dt_StationManager Outstation = null; |
| | | |
| | |
| | | // å建并添å ä»»å¡å°æ°æ®åº |
| | | hasTask = new Dt_Task |
| | | { |
| | | Grade = 1, |
| | | Grade = 3, |
| | | Roadway = Outstation.Roadway, |
| | | TargetAddress = Outstation.stationChildCode, |
| | | Dispatchertime = DateTime.Now, |