111
This commit is contained in:
parent
6e91814080
commit
1b64e3e69a
@ -483,9 +483,14 @@ namespace MyCode.Project.Services.Implementation
|
|||||||
var userList = _sysLoginRepository.Queryable().Where(t => t.Status == 1 && t.IsDeleted == false && t.SystemType == 0 && t.SupplierId != "").ToList();
|
var userList = _sysLoginRepository.Queryable().Where(t => t.Status == 1 && t.IsDeleted == false && t.SystemType == 0 && t.SupplierId != "").ToList();
|
||||||
if (SupplierId != "")
|
if (SupplierId != "")
|
||||||
userList = userList.Where(t => t.SupplierId == SupplierId).ToList();
|
userList = userList.Where(t => t.SupplierId == SupplierId).ToList();
|
||||||
|
List<string> tempList = new List<string>();
|
||||||
userList.ForEach(t =>
|
userList.ForEach(t =>
|
||||||
{
|
{
|
||||||
|
if (tempList.Contains(t.SupplierId))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
tempList.Add(t.SupplierId);
|
||||||
var items = _purchaseOrderItemRepository.Queryable().Where(h => h.SupplierId == t.SupplierId && h.Qty > h.MSSReceiveQty).Select(h=>h.Fid).ToList().Distinct().ToList();
|
var items = _purchaseOrderItemRepository.Queryable().Where(h => h.SupplierId == t.SupplierId && h.Qty > h.MSSReceiveQty).Select(h=>h.Fid).ToList().Distinct().ToList();
|
||||||
var maxDate = _purchaseOrderRepository.Queryable().Where(h => h.SupplierId == t.SupplierId && items.Contains(h.FiD)).Min(h => h.FModifyDate);
|
var maxDate = _purchaseOrderRepository.Queryable().Where(h => h.SupplierId == t.SupplierId && items.Contains(h.FiD)).Min(h => h.FModifyDate);
|
||||||
DateTime begin = DateTime.Parse("2024-01-01");
|
DateTime begin = DateTime.Parse("2024-01-01");
|
||||||
|
@ -101,7 +101,29 @@ namespace MyCode.Project.WebApi.Controllers
|
|||||||
|
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
//[AllowAnonymous]
|
||||||
|
//[HttpGet]
|
||||||
|
//public void asda()
|
||||||
|
//{
|
||||||
|
// List<string> tempList = new List<string> { "Supplier1", "Supplier2" };
|
||||||
|
|
||||||
|
// if (!tempList.Contains("Supplier"))
|
||||||
|
// {
|
||||||
|
// Console.WriteLine("不包含 Supplier(符合预期)");
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if (tempList.Contains("Supplier1"))
|
||||||
|
// {
|
||||||
|
// Console.WriteLine("包含 Supplier1(符合预期)");
|
||||||
|
// }
|
||||||
|
|
||||||
|
// string lll = "Supplier2";
|
||||||
|
// if (lll.Contains("Supplier"))
|
||||||
|
// {
|
||||||
|
// Console.WriteLine("包含 Supplier1(符合预期)");
|
||||||
|
// }
|
||||||
|
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user