This commit is contained in:
2025-04-29 10:51:23 +08:00
parent b64bbdc582
commit 99ab5b79d0
4 changed files with 38 additions and 3 deletions

View File

@@ -468,9 +468,11 @@ namespace MyCode.Project.Services.Implementation
/// 抓取金蝶的采购订单
/// </summary>
public void AddOrderFromKingDee()
public void AddOrderFromKingDee(string SupplierId="")
{
var userList = _sysLoginRepository.Queryable().Where(t => t.Status == 1 && t.IsDeleted == false && t.SystemType == 0 && t.SupplierId != "").ToList();
if (SupplierId != "")
userList = userList.Where(t => t.SupplierId == SupplierId).ToList();
userList.ForEach(t =>
{
var maxDate = _purchaseOrderRepository.Queryable().Where(h => h.SupplierId == t.SupplierId).Max(h => h.FModifyDate);