Administrator
2024-06-23 8f997184b1698d7e28625ddd0df6ae09d496823e
Wms/WMS.BLL/BllTransServer/RcsServer.cs
@@ -10,11 +10,12 @@
using WMS.Entity.Context;
using WMS.Entity.DataEntity;
using WMS.Entity.SysEntity;
using WMS.IBLL.IBllTransServer;
using static Model.InterFaceModel.RCSModel;
namespace WMS.BLL.BllTransServer
{
    public class RcsServer
    public class RcsServer:IRcsServer
    {
        private static readonly SqlSugarScope Db = DataContext.Db;
        /// <summary>
@@ -185,18 +186,18 @@
        /// <param name="agvCode"></param>
        /// <param name="url">RCS地址</param>
        /// <returns></returns>
        public string genAgvSchedulingTask(string taskCode, string taskType, string startPos, string endPos, string agvCode,string url, ref genAgvSchedulingTaskRep cbrep)
        public string genAgvSchedulingTask(AgvTask agv,string url, ref genAgvSchedulingTaskRep cbrep)
        {
            try
            {
                PositionCodePath pcd1 = new PositionCodePath()
                {
                    positionCode = startPos.ToString(),
                    positionCode = agv.startPos.ToString(),
                    type = "00",
                };
                PositionCodePath pcd2 = new PositionCodePath()
                {
                    positionCode = endPos.ToString(),
                    positionCode = agv.endPos.ToString(),
                    type = "00",
                };
                List<PositionCodePath> lst = new List<PositionCodePath>();
@@ -204,17 +205,17 @@
                lst.Add(pcd2);
                genAgvSchedulingTaskReq cbreq = new genAgvSchedulingTaskReq()
                {
                    reqCode = taskCode.ToString(),
                    taskCode = taskCode.ToString(),
                    taskTyp = taskType,
                    reqCode = agv.taskCode.ToString(),
                    taskCode = agv.taskCode.ToString(),
                    taskTyp = agv.taskType,
                    positionCodePath = lst,
                    podCode = "",
                    agvCode = agvCode,
                    agvCode = agv.agvCode,
                    ctnrTyp = "1",
                    //ctnrCode="2",
                };
                if (startPos == "50")
                if (agv.startPos == "50")
                {
                    cbreq.ctnrTyp = "4";
                }