添加序列号记录

This commit is contained in:
18942506660
2023-11-08 16:50:30 +08:00
parent 98a7f3f68a
commit 3f124a12b9
10 changed files with 186 additions and 23 deletions

View File

@@ -1,6 +1,7 @@
using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WMS.Web.Core.Dto;
using WMS.Web.Domain.Entitys;
@@ -18,7 +19,8 @@ namespace WMS.Web.Domain.Mappers
CreateMap<BoxDetails, BoxDetailResponse>();
CreateMap<OpsBoxResponse, Box>();
CreateMap<OpsBoxDetailsResponse, BoxDetails>();
CreateMap<OpsBoxDetailsResponse, BoxDetails>()
.ForPath(x => x.SerialNumbers, ops => ops.MapFrom(x => x.SerialNumbers.Select(s=>s.SerialNumber).ToList()));
}
}
}