| | |
| | | /// <param name="taskDTOs"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("ReceiveTask"), AllowAnonymous] |
| | | public WebResponseContent ReceiveWMSTask([FromBody] List<WMSTasksDTO> taskDTOs) |
| | | public object ReceiveWMSTask([FromBody] List<WMSTasksDTO> taskDTOs) |
| | | { |
| | | return _taskService.ReceiveWMSTask(taskDTOs); |
| | | WebResponseContent content = _taskService.ReceiveWMSTask(taskDTOs); |
| | | if (!content.Status) |
| | | { |
| | | return new |
| | | { |
| | | code = "404", |
| | | msg = content.Message |
| | | }; |
| | | } |
| | | else |
| | | { |
| | | return new |
| | | { |
| | | code = "0", |
| | | msg = content.Message, |
| | | data = content.Data |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | try |
| | | { |
| | | int containerType = taskDTO.containerCode.Contains("LLM") ? LocationTypeEnum.LargePallet.ObjToInt() : LocationTypeEnum.SmallPallet.ObjToInt();//è¿éæä¸ç¥éæ¯ä»ä¹ç±»å |
| | | int containerType = taskDTO.containerCode.Contains("LX") ? LocationTypeEnum.LargePallet.ObjToInt() : LocationTypeEnum.SmallPallet.ObjToInt(); |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | Dt_HKLocationInfo? kLSLocationInfo = _hKLocationInfoService.Repository.QueryFirst(x => x.WarehouseId.ToString() == taskDTO.toAreaCode && x.EnableStatus == EnableStatusEnum.Normal.ObjToInt() && x.LocationStatus == LocationStatusEnum.Free.ObjToInt() && x.LocationType == containerType); |
| | | if (kLSLocationInfo == null) throw new Exception($"æªæ¾å°ç»ç¹åºåºã{taskDTO.toAreaCode}ãå¯ç¨ç©ºè´§ä½ï¼"); |