出入库任务单在金蝶没查到任务单 就作废

This commit is contained in:
18942506660
2024-07-29 16:00:44 +08:00
parent bb3a28bcfd
commit 0fe5c20eff
14 changed files with 378 additions and 37 deletions

View File

@@ -828,5 +828,15 @@ namespace WMS.Web.Repositories
return (list, total);
}
public async Task<List<InStockTask>> GetEntityList(DateTime begin)
{
var res = await _context.InStockTask
.Include(s => s.Details)
.Where(f => f.WmsUpdateTime >= begin)
.ToListAsync();
return res.Clone();
}
}
}

View File

@@ -3,6 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using Org.BouncyCastle.Crypto;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -566,5 +567,14 @@ namespace WMS.Web.Repositories
return entitys.Clone();
}
public async Task<List<OutStockTask>> GetEntityList(DateTime begin)
{
var res = await _context.OutStockTask
.Include(s => s.Details).ThenInclude(s => s.ErpDetails)
.Where(f => f.WmsUpdateTime >= begin)
.ToListAsync();
return res.Clone();
}
}
}