From 99d55d437cc924429bb9589d5afe24f386cf8342 Mon Sep 17 00:00:00 2001 From: HuBingJie <3146306518@qq.com> Date: 星期四, 18 九月 2025 15:52:17 +0800 Subject: [PATCH] 1 --- 代码管理/WCS/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs | 45 ++++++++++++++++++++++++++------------------- 1 files changed, 26 insertions(+), 19 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs" index 1a41b9e..ac8d38e 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs" @@ -1133,29 +1133,36 @@ if (dt_task.TaskState > (int)TaskOutStatusEnum.OutNew) return WebResponseContent.Instance.Error($"浠诲姟鐘舵�佷笉鍏佽鍙栨秷"); } - var res = _task_HtyService.AddData(new Dt_Task_hty - { - TaskNum = dt_task.TaskNum, - PalletCode = dt_task.PalletCode, - Roadway = dt_task.Roadway, - TaskType = dt_task.TaskType, - TaskState = dt_task.TaskType >= (int)TaskInboundTypeEnum.Inbound ? (int)TaskInStatusEnum.InCancel : (int)TaskOutStatusEnum.OutCancel, - SourceAddress = dt_task.SourceAddress, - TargetAddress = dt_task.TargetAddress, - CurrentAddress = dt_task.CurrentAddress, - NextAddress = dt_task.NextAddress, - WMSId = dt_task.WMSId, - Dispatchertime = dt_task.Dispatchertime, - Remark = "浜哄伐鎵嬪姩鍙栨秷浠诲姟", - Creater = App.User.UserName, - CreateDate = DateTime.Now, - RGVTaskType = dt_task.RGVTaskType, - RGVCurrentexecution = dt_task.RGVCurrentexecution - }); + + Dt_Task_hty dt_Task_Hty = new Dt_Task_hty + { + TaskNum = dt_task.TaskNum, + PalletCode = dt_task.PalletCode, + Roadway = dt_task.Roadway, + TaskType = dt_task.TaskType, + TaskState = dt_task.TaskType >= (int)TaskInboundTypeEnum.Inbound ? (int)TaskInStatusEnum.InCancel : (int)TaskOutStatusEnum.OutCancel, + SourceAddress = dt_task.SourceAddress, + TargetAddress = dt_task.TargetAddress, + CurrentAddress = dt_task.CurrentAddress, + NextAddress = dt_task.NextAddress, + WMSId = dt_task.WMSId, + Dispatchertime = dt_task.Dispatchertime, + Remark = "浜哄伐鎵嬪姩鍙栨秷浠诲姟", + Creater = App.User.UserName, + CreateDate = DateTime.Now, + RGVTaskType = dt_task.RGVTaskType, + RGVCurrentexecution = dt_task.RGVCurrentexecution + }; + var res = _task_HtyService.AddData(dt_Task_Hty); if (res.Status == false) { db.Ado.RollbackTran(); return WebResponseContent.Instance.Error("鍙栨秷浠诲姟澶辫触锛�"); } + int oldState = dt_task.TaskState; + _taskExecuteDetailService.AddTaskExecuteDetail( + dt_task.TaskId, + $"鑷姩浠诲姟鐘舵�佷粠銆恵oldState}銆戣繘鍏ュ埌銆恵dt_Task_Hty.TaskState}銆�" +); var deletetask = BaseDal.DeleteData(dt_task); if (deletetask == false) { -- Gitblit v1.9.3