| | |
| | | private readonly IDt_TaskService _taskService; |
| | | private readonly ILocationInfoRepository _locationRepository; |
| | | private readonly IDt_TaskRepository _taskRepository; |
| | | private readonly IDt_Task_HtyRepository _task_HtyRepository; |
| | | private readonly IDt_OrderOutDetailsRepository _outDetailsRepository; |
| | | |
| | | public StockInfoService(IStockInfoRepository BaseDal, |
| | |
| | | IDt_TaskService taskService, |
| | | ILocationInfoRepository locationRepository, |
| | | IDt_TaskRepository taskRepository, |
| | | IDt_OrderOutDetailsRepository outDetailsRepository) : base(BaseDal) |
| | | IDt_OrderOutDetailsRepository outDetailsRepository, |
| | | IDt_Task_HtyRepository task_HtyRepository) : base(BaseDal) |
| | | { |
| | | _locationStatusChangeRecordRepository = locationStatusChangeRecordRepository; |
| | | _inboundOrderRepository = inboundOrderRepository; |
| | |
| | | _locationRepository = locationRepository; |
| | | _taskRepository = taskRepository; |
| | | _outDetailsRepository = outDetailsRepository; |
| | | _task_HtyRepository = task_HtyRepository; |
| | | } |
| | | #region 鏂规硶閲嶅啓 |
| | | /// <summary> |
| | |
| | | { |
| | | var stocks = await _stockInfoDetailRepository.QueryDataAsync(x => true); |
| | | var orderdetail = SqlSugarHelper.DbWMS.Queryable<Dt_OrderOutDetails_Hty>().Where(x => true).ToList(); |
| | | var task = _taskRepository.QueryData(x => true).ToList(); |
| | | |
| | | // 鑾峰彇UTC褰撳墠鏃堕棿 |
| | | DateTime utcNow = DateTime.UtcNow; |
| | |
| | | dates = MonthSumData.Select(x => x.Date).ToArray(), |
| | | inValue = MonthSumData.Select(x => x.InValue).ToArray(), |
| | | outValue = MonthSumData.Select(x => x.OutValue).ToArray(), |
| | | } |
| | | }, |
| | | newTask = task.Select(x => new |
| | | { |
| | | x.PalletCode, |
| | | x.Roadway, |
| | | x.SourceAddress, |
| | | x.TargetAddress, |
| | | x.ErrorMessage, |
| | | x.CreateDate, |
| | | TaskType = EnumHelper.GetDescriptionFromEnums(x.TaskType, typeof(TaskOutboundTypeEnum), typeof(TaskInboundTypeEnum), typeof(TaskAcrossFloorTypeEnum), typeof(TaskRelocationTypeEnum), typeof(TaskAGVCarryTypeEnum)), |
| | | TaskState = EnumHelper.GetDescriptionFromEnums(x.TaskState, typeof(TaskInStatusEnum), typeof(TaskOutStatusEnum), typeof(TaskAcrossFloorStatusEnum), typeof(TaskRelocationStatusEnum), typeof(TaskAGVCarryStatusEnum)) |
| | | }).ToList() |
| | | }; |
| | | |
| | | return content.OK(data: obj); |
| | | } |
| | | catch (Exception ex) |