盘盈盘亏同步

This commit is contained in:
18942506660
2023-11-07 10:57:46 +08:00
parent 0a9d34ba9c
commit 0630137920
6 changed files with 144 additions and 17 deletions

View File

@@ -14,6 +14,8 @@ namespace WMS.Web.Domain.Mappers
{
CreateMap<SaveTakeStockRequest, TakeStockDetails>()
.ForMember(x => x.ResultType, ops => ops.MapFrom(x => (x.AfterQty - x.BeforeQty) >0? TakeStockType.Profit: TakeStockType.Loss));
CreateMap<SaveTakeStockRequest, TakeStock>()
.ForMember(x => x.ResultType, ops => ops.MapFrom(x => (x.AfterQty - x.BeforeQty) > 0 ? TakeStockType.Profit : TakeStockType.Loss));
}
}
}