1
huanghongfeng
2025-11-05 f49fa4b5027cfdc27b429985d023e8002abcca2e
代码管理/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/Task_HtyService.cs
@@ -86,10 +86,13 @@
    public bool CrueeTaskHty(string TargetAddress)
    {
        Dt_Task_Hty task_Hty = BaseDal.QueryData(x => x.TargetAddress == TargetAddress).OrderByDescending(x => x.CreateDate).FirstOrDefault();
        Dt_Task_Hty task_Hty = BaseDal.QueryData(x => x.TargetAddress == TargetAddress || x.SourceAddress == TargetAddress).OrderByDescending(x => x.CreateDate).FirstOrDefault();
        if (task_Hty == null) return false;
        if(task_Hty.TaskType== TaskTypeEnum.Inbound.ObjToInt() || task_Hty.TaskType == TaskTypeEnum.Relocation.ObjToInt() || task_Hty.TaskType == TaskTypeEnum.PalletInbound.ObjToInt()) return true;
        if((task_Hty.TaskType == TaskTypeEnum.Inbound.ObjToInt() || task_Hty.TaskType == TaskTypeEnum.Relocation.ObjToInt() || task_Hty.TaskType == TaskTypeEnum.PalletInbound.ObjToInt()) && task_Hty.Remark !="浜哄伐鍒犻櫎")
        {
            return true;
        }
        return false;
    }