xiaojiao
2026-03-23 f02d3a8ffc05a10a64859b2a16d5d43c8abb0fb9
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/ToWCS/Partial/UpdateState.cs
@@ -7,6 +7,7 @@
using WIDESEA.Core.Services;
using WIDESEA.Core.Utilities;
using WIDESEA.Entity.DomainModels;
using WIDESEA.Services.IRepositories;
using WIDESEA.Services.Repositories;
namespace WIDESEA.Services.IServices
@@ -84,6 +85,17 @@
                         taskinfo.task_type == TaskType.TaskType_Box_Pallet_Measure_Back.ToString()) &&
                         (taskState.Contains("_Measure") || taskState == TaskState.TaskState_RGV_Received.ToString()))
                {
                    try
                    {
                        Dt_container_detail tempdetail = Dt_container_detailRepository.Instance.Find(x => x.containerdtl_goodsCode == taskinfo.task_sn).FirstOrDefault();
                        tempdetail.containerdtl_text1 = "未测量";
                        Dt_container_detailRepository.Instance.Update(tempdetail, true);
                    }
                    catch (Exception)
                    {
                        throw;
                    }
                    //说明要准备回库了,将任务类型改为测量回库
                    if (taskinfo.task_state == TaskState.TaskState_Measure_Back_Line_Wait_Executing.ToString())
                    {
@@ -102,6 +114,7 @@
                        taskinfo.task_state = TaskState.TaskState_Measure_Back_Line_Executing.ToString();
                        taskinfo.task_dispatchertime = DateTime.Now;
                        Dt_taskinfoRepository.Instance.Update(taskinfo, true);
                    }