添加序列号记录
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user