1
huangxiaoqiang
2025-05-21 c570f80289bd9b04f02b861f2a91d47b3e1aec72
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_StorageSocketServices/SocketClientService.cs
@@ -22,6 +22,7 @@
using WIDESEA_Core.BaseRepository;
using AutoMapper;
using Mapster;
using System.Threading.Tasks;
namespace WIDESEA_StorageSocketServices
{
@@ -1130,12 +1131,32 @@
        /// <returns></returns>
        private int InsertAGVTask(Dt_Task task)
        {
            string SourceAddress = string.Empty;
            string TargetAddress = string.Empty;
            if (task.TaskType == (int)TaskInboundTypeEnum.Inbound)
            {
                TargetAddress = InsertHyphenEveryTwoChars(task.TargetAddress);
            }
            else if (task.TaskType == (int)TaskOutboundTypeEnum.Outbound)
            {
                SourceAddress = InsertHyphenEveryTwoChars(task.SourceAddress);
            }
            else if (task.TaskType == (int)TaskRelocationTypeEnum.Relocation)
            {
                TargetAddress = InsertHyphenEveryTwoChars(task.TargetAddress);
                SourceAddress = InsertHyphenEveryTwoChars(task.SourceAddress);
            }
            else if (task.TaskType == (int)TaskStationTypeEnum.StationToStation)
            {
                TargetAddress = task.TargetAddress;
                SourceAddress = task.SourceAddress;
            }
            task_call task_Call = new task_call()
            {
                d_task_type = task.TaskType == (int)TaskTypeEnum.Inbound ? 1 : 2,
                d_floor = 1,
                d_involed1 = InsertHyphenEveryTwoChars(task.SourceAddress),
                d_involed2 = InsertHyphenEveryTwoChars(task.TargetAddress),
                d_involed1 = SourceAddress,
                d_involed2 = TargetAddress,
                d_involed5 = task.TaskNum,
            };