调整接口优化

This commit is contained in:
tongfei
2023-10-30 16:07:12 +08:00
parent fef6a72439
commit abb381aa0e
5 changed files with 41 additions and 4 deletions

View File

@@ -14,6 +14,7 @@ using WMS.Web.Domain.Entitys;
using WMS.Web.Domain.Infrastructure;
using WMS.Web.Domain.IService;
using WMS.Web.Domain.IService.Public;
using WMS.Web.Domain.Mappers;
using WMS.Web.Domain.Values;
namespace WMS.Web.Domain.Services
@@ -148,6 +149,8 @@ namespace WMS.Web.Domain.Services
return Result.ReFailure(ResultCodes.DateWriteError);
entity = _mapper.Map(dto, entity);
//子集单独映射
entity.Details = _mapper.ToMapList(dto.Details, entity.Details);
if (isReceive)
entity.Receive(staffId);
else