This commit is contained in:
2025-05-16 18:37:51 +08:00
parent 0ecbc73c0b
commit 6e91814080
4 changed files with 20 additions and 15 deletions

View File

@@ -33,7 +33,7 @@ namespace MyCode.Project.Services
/// 采购订单列表
/// </summary>
/// <returns></returns>
string QueryList(DateTime begin, DateTime end, string FSupplierId);
string QueryList(DateTime begin, DateTime end, string FSupplierId, string yuYan = "");
/// <summary>
/// 采购单分页列表

View File

@@ -144,7 +144,7 @@ namespace MyCode.Project.Services.Implementation
/// 采购订单列表
/// </summary>
/// <returns></returns>
public string QueryList(DateTime begin, DateTime end, string FSupplierId)
public string QueryList(DateTime begin, DateTime end, string FSupplierId, string yuYan = "")
{
BillQuery queryParam = new BillQuery();
queryParam = new BillQuery()
@@ -175,7 +175,7 @@ namespace MyCode.Project.Services.Implementation
//.AddFilterItem(FCancelStatusItem4)
.AddFilterItem(FCancelStatusItem2).AddFilterItem(FCancelStatusItem3);
queryParam.FilterString = filterString.GetFilterString();
var result = _kingDeeService.QueryList(queryParam);
var result = _kingDeeService.QueryList(queryParam, yuYan);
return result;
}
@@ -493,14 +493,16 @@ namespace MyCode.Project.Services.Implementation
{
begin = maxDate.Value.Date;
}
string yuyan = "";
if (t.IfForeign == 1)
yuyan = "1033"; //语言ID中文2052默认英文1033繁体3076;
DateTime end = begin.AddMonths(1);
bool stop = false;
Dictionary<int, List<int>> keyValuePairs = new Dictionary<int, List<int>>();
while (end < DateTime.Now || stop == false)
{
end = begin.AddMonths(1);
var result = QueryList(begin, end, t.SupplierId);
var result = QueryList(begin, end, t.SupplierId, yuyan);
if (t.SupplierId == "9999.1")
{
LogHelper.Info(t.SupplierName + "的采购订单数据" + begin.ToString() + "-----" + end.ToString());