| | |
| | | TaskNum = t.TaskId, |
| | | TaskType = t.TaskType, |
| | | CreateDate = t.CreateDate, |
| | | TaskStatus = t.TaskStatus |
| | | TaskStatus = t.TaskStatus, |
| | | TargetAddress = t.TargetAddress |
| | | }) |
| | | .ToList(); |
| | | return WebResponseContent.Instance.OK("æå", tasks); |
| | |
| | | /// </summary> |
| | | return _task_HtyService.GetWarehouseOperationStatistics(); |
| | | } |
| | | |
| | | public WebResponseContent GetTaskDestination(string targetAddress) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | // åæ°æ ¡éª |
| | | if (string.IsNullOrWhiteSpace(targetAddress)) |
| | | { |
| | | return content.Error("ç®æ å°åä¸è½ä¸ºç©º"); |
| | | } |
| | | try |
| | | { |
| | | // æ¥è¯¢æ°æ® |
| | | var queryResult = BaseDal.QueryData(x => x.TargetAddress == targetAddress); |
| | | // 夿æ¥è¯¢ç»æ |
| | | if (queryResult == null || !queryResult.Any()) |
| | | { |
| | | return content.Error($"æªæ¾å°ç®æ å°å为[{targetAddress}]çä»»å¡"); |
| | | } |
| | | return content.OK($"æç®æ å°å为[{targetAddress}]çä»»å¡ï¼è¯·æ¦æª"); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return content.Error($"è·åä»»å¡ç®çå°å¤±è´¥: {ex.Message}"); |
| | | } |
| | | } |
| | | } |
| | | } |