修复bug

This commit is contained in:
18942506660
2023-11-16 13:55:22 +08:00
parent 175eb04551
commit 2989739e30
3 changed files with 13 additions and 1 deletions

View File

@@ -44,6 +44,10 @@ namespace WMS.Web.Api.Controllers
[Route("hj")]
public async Task<string> TestHJ()
{
//var t=await _outStockTaskRepositories.Get(1);
// t.Details[0].Remark = "sdf";
// t.Details[0].ErpDetails[0].SaleBillNo = "sdfsfsbbbb";
// var s = await _outStockTaskRepositories.Edit(t);
// await _boxService.Sync();
//var res = await this._erpService.BillQueryForDeliveryNoticeOutStock(null,DateTime.Now.AddDays(-300));
//var result= await this._erpService.BillQueryForPurchaseInStock();

View File

@@ -13,6 +13,14 @@ namespace WMS.Web.Domain.Mappers
{
public OutStockMapper()
{
CreateMap<OutStockTask, OutStockTask>();
CreateMap<OutStockTaskDetails, OutStockTaskDetails>();
CreateMap<OutStockTaskErpDetails, OutStockTaskErpDetails>();
CreateMap<OutStock, OutStock>();
CreateMap<OutStockDetails, OutStockDetails>();
CreateMap<OutStockErpDetails, OutStockErpDetails>();
CreateMap<SaveOutStockRequest, OutStockDetails>();
CreateMap<OutStockTaskDetails, OutStockDetails>()

View File

@@ -152,7 +152,7 @@ namespace WMS.Web.Repositories
public async Task<OutStockTask> Get(int id)
{
var res = await _context.OutStockTask
.Include(s => s.Details)
.Include(s => s.Details).ThenInclude(x=>x.ErpDetails)
.FirstOrDefaultAsync(f => id == f.Id);
return res.Clone();