|  |  | 
 |  |  | using LogLibrary.Log; | 
 |  |  | using Masuit.Tools; | 
 |  |  | using Newtonsoft.Json; | 
 |  |  | using System; | 
 |  |  | using System.Collections.Generic; | 
 |  |  | 
 |  |  |                 var location = _locationRepository.QueryFirst(x => x.AreaId == result.LocationArea && x.LocationCode == result.LocationID); | 
 |  |  |  | 
 |  |  |                 if (location == null) throw new Exception("未知库位"); | 
 |  |  |  | 
 |  |  |                 if (_taskRepository.QueryFirst(x => x.SourceAddress == result.LocationID && x.Roadway == location.RoadwayNo) != null) | 
 |  |  |                 { | 
 |  |  |                     throw new Exception("当前库位已存在任务"); | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |                 Dt_StationManager stationManager; | 
 |  |  |                 if (result.IsNG == 1) | 
 |  |  | 
 |  |  |                 //    TaskState = (int)TaskOutStatusEnum.OutNew, | 
 |  |  |                 //}; | 
 |  |  |                 LogFactory.GetLog("分容测试完成通知").Info(true, $"\r\r--------------------------------------"); | 
 |  |  |                 LogFactory.GetLog("分容测试完成通知").Info(true, result); | 
 |  |  |                 LogFactory.GetLog("分容测试完成通知").Info(true, result.ToJsonString()); | 
 |  |  |                 return content.OK(); | 
 |  |  |             } | 
 |  |  |             catch (Exception ex) |