lss
2025-06-20 b2c070eaf8cc59b40d27bda904312d0c394a51f4
HH.WCS.Mobox3/HH.WCS.Mobox3.DaYang/process/TaskProcess.cs
@@ -8,6 +8,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Emit;
using System.Security.Cryptography;
using System.Text;
using static HH.WCS.DaYang.api.ApiModel;
@@ -125,7 +126,7 @@
                        {
                            Result<DeviceStatusModel> DeviceStatu = httpHelper.GetDeviceStatus(new string[] { mst.S_END_LOC }, tableUrl.url);
                            //设备状态空则允许推送
                            if (DeviceStatu != null && DeviceStatu.Data[0].PhotoStatus == 0)
                            if (DeviceStatu != null && DeviceStatu.Data.PhotoStatus == 0)
                            {
                                result = true;
@@ -145,7 +146,9 @@
                {
                    var task = WCSHelper.GetTaskByOpName(mst.S_OP_CODE, 3);
                    if (task != null)
                    { result = true; }
                    {
                        result = true;
                    }
                }
            }
            if (mst.S_TYPE == "出库")
@@ -155,7 +158,23 @@
                {
                    var task = WCSHelper.GetTaskByOpName(mst.S_OP_CODE, 3);
                    if (task != null)
                    { result = true; }
                    {
                        result = true;
                    }
                }
                else
                {
                    //如果当前任务不是移库任务,需要判断移库任务是否完成
                    if (mst.S_TYPE != "移库")
                    {
                        var db = new SqlHelper<object>().GetInstance();
                        var ykmst = db.Queryable<WCSTask>().Where(a => a.S_OP_CODE == mst.S_OP_NAME && a.N_B_STATE == 3 && a.S_TYPE == "移库").First();
                        if (ykmst != null)
                        {
                            result = true;
                        }
                    }
                }
            }
            #endregion