From e46aa927d231af83724683c7286d9db503e24cf7 Mon Sep 17 00:00:00 2001 From: z8018 <1282578289@qq.com> Date: 星期二, 10 六月 2025 11:46:20 +0800 Subject: [PATCH] 1 --- 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Filter/CustomProfile.cs | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Filter/CustomProfile.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Filter/CustomProfile.cs" index 0c9603e..8f4e81d 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Filter/CustomProfile.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Filter/CustomProfile.cs" @@ -5,7 +5,6 @@ using System.Text; using System.Threading.Tasks; using WIDESEA_DTO.System; -using WIDESEAWCS_DTO.TaskInfo; using WIDESEAWCS_Model.Models; using WIDESEAWCS_QuartzJob.DTO; using WIDESEAWCS_QuartzJob.Models; @@ -18,13 +17,11 @@ /// <summary> /// 閰嶇疆鏋勯�犲嚱鏁帮紝鐢ㄦ潵鍒涘缓鍏崇郴鏄犲皠 /// </summary> - public CustomProfile() + public CustomProfile() { CreateMap<Sys_Menu, MenuDTO>(); - CreateMap<Dt_DeviceInfo,DeviceInfoDTO>(); - CreateMap<WMSTaskDTO, Dt_Task>(); - CreateMap<Dt_Task, ConveyorLineTaskCommand>().ForMember(a => a.TargetAddress, b => b.MapFrom(b => b.NextAddress)).ForMember(a => a.Barcode, b => b.MapFrom(b => b.PalletCode)).ForMember(a => a.TaskNum, b => b.MapFrom(b => b.TaskNum)); - CreateMap<Dt_Container, Dt_OrderContainer>().ForMember(a => a.ContainerId, b => b.MapFrom(b => b.Id)); + CreateMap<Dt_DeviceInfo, DeviceInfoDTO>(); + CreateMap<Dt_Container, Dt_OrderContainer>().ForMember(a => a.ContainerId, b => b.MapFrom(b => b.Id)).ForMember(a => a.MaxLength, b => b.MapFrom(b => b.ContainerLength)); } } } -- Gitblit v1.9.3